this is probably going to spark a lot of 'Duplicate of ...' but I really need to know if this is do-able.
I'm currently attempting to make mods for Minecraft with the Minecraft Coders Pack and Eclipse Java EE.
I am not an admin on my machine so I can't get JDK which MCP needs.
All I need basically is the files from JDK, I'm not having problems with setting JAVA_HOME and PATH as I can set those dirs manually in the de-compiler.
I need JDK 6
I have done this myself because I was in the same position. I tried copying the JDK as well, but that didn't work, could be a mistake on my part.
I am using OpneJDK now, and that works perfectly with intelij-idea, I'm sure it works with Eclipse as well.
http://openjdk.java.net/
Related
I have a program that I want to run as an exe on a clients computer. After I made my program in Java I used Jsmooth to create the exe. The program runs perfectly fine from my own local computer, but when I try running the same program on another computer the program prompts me to install Java. After installing Java, the program STILL wants me to install Java. I thought it might be different versions of Java, but I compiled the Jar with the most LTS of Java, and my JRE was on the most recent version. What should I do?
JVMs are quite large. Out of the box, JSmooth therefore doesn't include one. I think you can ask it (I'm recalling exe4j perhaps, a different tool that does the same thing as jsmooth), by stating which path contains one relative to the executable. You cannot fold it straight into the exe, though. It'll then be an installation process where you end up with:
C:\Program Files\AnthonysAwesomeApp\Anthony.exe
C:\Program Files\AnthonysAwesomeApp\jre\lib\rt.jar
C:\Program Files\AnthonysAwesomeApp\jre\bin\java.exe
... and the other 5000 files of a JRE installation
Where 'Anthony.exe' is made by JSmooth, and you told JSmooth that it should use the JRE found in location ".\jre".
That should probably still work.
The more general problem is that the entire deployment model is more or less obsolete; JREs do not exist anymore, at least, oracle/team openjdk has ceased producing them and has ceased mentioning the very concept, but some third party deployers such as Azul still produce them. Java1.8 is the last version that can truly be said to have had the concept of a JRE.
A JDK is a superset of a JRE (It has everything a JRE has, and more), and JDKs still exist, so you should just be able to ship an entire JDK.
The new model is jlink, modules, and treeshaking, and it doesn't feel like any of the exe maker projects such as JSmooth have been updated for it. In general, java is used a ton on servers, but java on the desktop is not observed that much. If you want to delve into those - you have a lot of reading to do, and the experience is not as smooth (heh) as JSmooth.
I messed with the version of Java that I was using in Matlab and then I had some issues, so I tried to delete Matlab and all versions of Java from my machine then reinstall Matlab. According to,
http://www.mathworks.com/matlabcentral/answers/130359-how-do-i-change-the-java-virtual-machine-jvm-that-matlab-is-using-on-windows
Matlab already has java in it, so I assumed that the fresh install of Matlab would fix the issue. But it did not and I ended up having to install Java and point to it as per the article above just to get Matlab working with Java again.
The issues are these:
When I start up Matlab, I get
Sometimes it spools red errors and I have to shut Matlab off
I loose a lot of the interactive features, for instance; I cannot click on the folder ribbon to move through the folders as:
3.b also, sometimes I cannot resize windows.
So, I lost some functionality. How can I run the version of Java that ships with the student version of Matlab?
Thanks!!
I point the system MATLAB_JAVA variable to:
C:\Program Files\MATLAB\R2015a\sys\java\jre\win64\jre
Which is the original java version that MATLAB was shipped with. For some reason, the new java is buggy with the new matlab
So I have this neat physics sim I made that, while running at certain settings, runs at around 34 fps when ran via the Netbeans "run" -command. Then I click "clean and build" and go open the program from the dist folder, and it runs at around 10 fps with the same setup.
Can it be about Java settings? I don't have any special setting done in Netbeans but I'm not sure how to check my the settings on the installed JRE, can they even be different by default from what Netbeans uses by default?
I doubt it's running a different JDK but you can check the JDK that your Netbeans installation is using at Tools -> Java Platforms. To check what version of Java is in use by the distributed version look at your JAVA_HOME, and Path environment variables.
A major difference between the distributed version and the development environment may be the libraries. Check your CLASSPATH environment variable, and compare the actual files between the distribution and development environment to see that the size and dates match. I'm not totally sure how to get at the CLASSPATH used by Netbeans but can advise that it has some special magic it uses based on the libraries included. Also be aware that the order of the included libraries may make a differen
What software are you using to deploy your project?
Ok problem solved, it was due to outdated Java. I did have my 32 bit Java updated already - the default download at oracle.com but the program was using the 64 bit version, which was actually way outdated. So installing the latest 64 bit release of Java solved it.
I am having a problem with my Java on my personal laptop. I have Java 8u11(JDK and JRE). I am working in Eclipse Kepler and making applications. Until now I was working on my office computer and I had no problems(I have Java v7u55 on the office one).
Starting yesterday after I created a small Swing-GUI program as a test in Eclipse and I ran it on my personal computer the program came up all weird and twisted with all the letters twitching or missing.
You can see more from the screenshot below.
Something like this:
The same thing happens with all my executable JAR files.
The button are not empty there is text in them:
I've tried re-installing Java and installing it again and it won't work. I have the Java added to my System Variables Path.
I think it is a problem with the JRE/JDK. Maybe downgrading the Java version I have installed ?
Restart of the computer didn't work. Any other ideas or solutions ?
This question can be closed as answered, as the solution from the question: Swing rendering appears broken in JDK 1.8, correct in JDK 1.7
helped in solving my issue.
I changed my 3D Settings in NVIDIA Control Panel to High-performance NVIDIA processor and was able to run my Java programs with JDK 8u11 without any problems.
Thanks :)
So I have been experiencing this problem for a while. I can use my existing java projects which I created on my PC, but on my laptop I can't create new Java projects. I reinstalled the program & reinstalled modules several times.
So when I click on new project, every java-type project is in the list except the regular one called 'java'... And the funny thing is that Java is the only project type I need at the moment, but it's simply not showing up..
I've looked on the internet for an answer but all I could find was one topic which was unanswered.
Help would be appreciated, a lot.
EDIT: OS: windows 7 64 bits. Using Netbeans 7.2 I think, well the newest for sure.
I just solved this problem by simply deleting .netbeans folder in User\<User>\ and .superId in \AppData\Roaming\NetBeans\
No need to reinstall.
Unfortunately you left out the OS you are using and you didn't mention the version of netbeans you tried!
You should completely uninstall netbeans. On UNIX OSes you'll find the .netbeans Folder in your homedir where netbeans keeps a lot of information. Remove this folder too (I don't know where this folder is stored on Windows OSes).
Having removed both netbeans and this folder, try a re-installation. Now things should look much better!
In my case I have installed multiple JDK (JDK version 8 and 9) due to which Netbeans 8.2 might not working as expected and then I was unable to create project.
Then I removed JDK9 and cleared cache from \Users\admin\AppData in windows.
Then I was able to create Java Project.