I have followed the instructions to direct eclipse to the virtual machine path of the JDK but for some reason when i clean the project and run make and deploy it shows that ant is still pointing to the jre in program files rather then the JDK specified and selected following -
Preferences > Java > Installed JRE's > Add... For 'JRE Type' select 'Standard VM' > Next > Directory: select your JDK directory (instead of JR)
Is there something im missing? Im using windows 10 64 bit.
The JRE/JDK used by Ant runs is configured in the run configuration for Ant.
Look in 'Run > External Tools > External Tools Configurations...' and find your Ant build. Look in JRE tab for the configuration.
Related
I recently upgrades from Java 8 to Java 11 (i.e. java-11-openjdk java-11-openjdk-devel), primarily using this article for reference:
https://sysadminxpert.com/install-openjdk-11-on-centos-7/
And in Eclipse (Spring Tools Suite 4.1.0, I updated each of the following:
Window > Preferences > Java > Installed JREs to:
JRE home: /usr/lib/jvm/java-11-openjdk-11.0.9.11-0.el7_9.x86_64
JRE name: java-11-openjdk-11.0.9.11-0.el7_9.x86_64
Window > Preferences > Java > Compiler to:
Compiler compliance level: 11
And for each individual Java project, I edited the Build Path > Configure Build Path> Libraries Tab > Modulepath > JRE System Library to point to:
Execution environment: JavaSE-11 (java-11-openjdk-11.0.9.11-0.el7_9.x86_64)
However, each time I open up Eclipse I get a warning stating:
Missing JDK
The JRE you are running Eclipse with appears to not be a JDK.
Spring Boot Live hovers will not work with a plain JRE.
The JRE you are running Eclipse with is:
/usr/lib/jvm/java-11-openjdk-11.0.9.11-0.el7_9.x86_64
I've tried googling this, but other issues look like they are actually tied to using a JRE instead of a JDK. In my case, it seems like everything is pointing to the JDK. Has anyone run into a similar issue and know how to fix it?
Mine works after edited the .ini:
Quit Eclipse if it is running
Go to the Eclipse installation directory and open the file
eclipse.ini in a text editor.
Search for the line -vmargs
Before the line -vmargs, add two lines:
On the first line, write -vm
On the second line, write the path to your JDK installation (usually
something like: C:\Program Files\Java\jdk1.6.0_31\bin\javaw.exe on
Windows)
JDK 1.8 is already installed in Windows 10 64 bit system. I am trying to create a scala project in Eclipse Scala IDE. Is says "Unbound classpath container: JRE System Library [JavaSE-1.8] in project.
While checking the Java build path-- Libraries-- JRE is coming outbound.
When I click to add JRE library, it has workspace default JRE (unbound)
While searching through preferences-- installed JRE--search. It gives no JREs.
If I try to add -- standard vm--directory ( JDK dir home). Ideally it should populate or detect all the jars but it doesn't detect.
I Tried running the application as 'Administrator' and it ran successfully.
Select your project and right click--> Build Path --> Configure Build Path -->Select Libraries--> Add Library-->JRE System Library--> Add the installed JRE here.
And if the JRE library is not getting selected, check the environment variables- JAVA_HOME and Path.
And to see if the java is correctly installed, try hitting this from CMD
java -version
I've been having
Exception in thread "main" java.lang.UnsupportedClassVersionError: Unsupported major.minor version 51.0
So I looked it up, and then updated both my JRE and JDK to 8th version.
But above the console, it displays:
System/Library/Java/JavaVirtualMachines/1.6.0 JDK ....
How do I make my Eclipse run in 8th version of JDK and JRE?
And do I need to change anything in my projects after upgrading?
Thanks in advance!
In Eclipse:
Select pull-down menu: Windows > Preferences
On left, select Java > Installed JREs
Click "Add..." and browse to your JDK/JRE folder
Rename if desired, e.g. change "jdk1.8.0_51" to "jdk1.8"
Repeat if you want access to more JDK/JRE versions in Eclipse workspace
Check the JRE you want to be the default for your projects
On left, select Java > Compiler
Set compliance level to match the default JRE
Note: If your projects don't use the workspace default, then you need to update the project Properties.
Eclipse itself is running with the default Java, i.e. the java on your PATH. If you want Eclipse to run using a different JDK/JRE, you need to edit the eclipse.ini file. See the link provided by Tarun Gupta.
In Eclipse you have to change the Java location like below steps
Check for:
1) Proper java environment variable setup.
2) Right click on Project name in Project Explorer in Eclipse. Click on Build Path -> Configure Build Path. Check for proper path for Java Build Path.
Also check whether the latest version of Java is selected in Java Compiler -> Compiler Compliance Level.
3) Check from command line which Java is installed by typing java -version or java.
(Sometimes Java installed from command line in Linux systems installs old versions)
This one has me pretty frustrated...
I've installed the Java JDK and got the command line successfully pointed at it. When I open jar files through the terminal it uses the correct JDK to run the jar.
However, when I attempt to open the same jar via double-clicking it in Finder, it uses a different Java executable! In this case, the one that's located at /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java.
How can I change what Java executable Finder is using?
System Preferences > Java Control Panel > Java > View... :
I've followed the following instructions to get Jive up and running on a windows 7 64 bit machine.
Java
Install latest version of Java
Download Java SE 6 Update 37 JDK (includes JRE) but do not install yet
Open a new command prompt and run java --version to verify that it is correctly installed.
If you receive an error saying version 1.5 was expected and 1.7 was found, make sure all versions of software are for the correct OS (64 or 32 bit) which may require you to uninstall current versions (system will use the most recent version installed, even if you try to install an older version after the newer version was installed)
Eclipse
Download & install Eclipse IDE for Java EE Developers
Once installed, create your default workspace and access Help – Eclipse Marketplace
Search the marketplace for SubClipse and install
Search the marketplace for Maven Integration for Eclipse WTP and install
PostGres
Install postgreSQL
Once you have installed postgres, uninstall java from the C:\oracle\Ora11gR2\product\11.2.0\client_1 directory and install Java version 7 there.
Open pgAdmin, click on the “plug” to create a new connection
Set name and host to localhost and include your network usename, port number, and password used when installing postgres
Expand the database tree, right click to add new login role - configure new login role as super user by selecting all options under role privileges, set PW under definition tab, and hit ok
exit or disconnect and log back in as your user
Create desired databases
Maven
Install binary mirror download of maven
Unzip the distribution archive, i.e. apache-maven-3.0.4-bin.zip to the directory you wish to install Maven 3.0.4. These instructions assume you chose C:\Program Files\Apache Software Foundation. The subdirectory apache-maven-3.0.4 will be created from the archive.
Unzip the distribution archive, i.e. apache-maven-3.0.4-bin.zip to the directory you wish to install Maven 3.0.4. These instructions assume you chose C:\Program Files\Apache Software Foundation. The subdirectory apache-maven-3.0.4 will be created from the archive.
Go to your environment variable (How to) dialog within Control Panel\System and Security\System and access Advanced system settings. On the System properties dialog, go to the Advanced tab and click “Environment Variables”
Add the M2_HOME variable in the system variables with the value C:\Program Files\Apache Software Foundation\apache-maven-3.0.4
add the M2 environment variable in the system variables with the value %M2_HOME%\bin
add the MAVEN_OPTS environment variable in the user variables to specify JVM properties, e.g. the value -Xms256m -Xmx512m
update/create the Path environment variable in the system variables and append the value %M2% to add Maven available in the command line. (add ;%M2% to the end of the path value)
Add/Update JAVA_HOME in your system variables and set the value to the location of your JDK, e.g. C:\Program Files\Java\jdk1.5.0_02
Make sure that %JAVA_HOME%\bin is in your Path environment variable. If not, append to existing Path system variable (remember to separate by semi-colon)
Open a new command prompt and run mvn --version to verify that it is correctly installed.
If this fails investigate the issues discussed in this article.
In the user’s directory (ie \USERNAME.m2) there will be a .m2 directory for the Maven repository. Create a settings.xml file in that directory with the repository settings
Jive Build
Check Jive out of SVN repository
edit the pom.xml file in the project root. Make sure the jive short version at about line 20 is set correctly: 5.0.2.1
Open a terminal window. Change to the top level project directory
Run this: mvn clean install -Djive.setup=false -P external
This is where i get stuck - I get a cmd prompt error when i run mvn clean install -Djive.setup=false -X external to get the debug log, and it says it's still missing the repository.
I've seen some documentation saying to get this all working on a windows 7 machien you should use a VM, but i've also seen that it's possible to do, just not supported.
Has anybody successfully installed, built, and ran jive on windows 7?
Following https://community.jivesoftware.com/docs/DOC-3547 for setting up maven says:
Note: this Maven configuration provides access to Jive binaries and sources via the maven-secure.jivesoftware.com server; it requires login access. See the bottom of the document where to put your login information.
Please request maven access by creating a Supportal case. If you do not have a company group, you may email your maven request to accountsupport#jivesoftware.com
It's possible that you don't have the required access.
the tricky part is getting the eae engine up and running in windows 7. It works from Jive 6 onwards. I remember in Jive 5 running the eae engine in a linux vm and hooking into it. after the setup, unless your doing development that requries the eae engine then you can just shut it off...