When i deploy my eclipse appengine project their is no error and successfully deployed. But when i add a .jsp file in my war folder, i can't deploy. The error message is ==> java.lang.RuntimeException: Cannot get the System Java Compiler. Please use a JDK, not a JRE.
my eclipse jre home definition is ==>
eclipse.ini
pc environment variable
and path
Where is the problem??? I cant understand? Please help someone...
In the eclipse.ini file the change is ==>
-vm
C:\Program Files (x86)\Java\jdk1.7.0_15\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Dhelp.lucene.tokenizer=standard
-Dosgi.requiredJavaVersion=1.7
Dosgi.requiredJavaVersion=(must be the java version.)
Related
I am getting an error in importing an existing gradle project - which has lombok as well, and the error while importing points to lombok line only.
How can I solve this error - so that importing of the project is successful?
If I comment that line - then it works but then lombok does not work for me.
Check for Java Home Directory shown in the Gradle loading window at the end - if that is shown as unknown then your problem solution is as follows:
In Oxygen-eclipse :
Go to eclipse.ini file and edit above -vmargs as follows:
-vm
C:\Program Files\Java\jdk1.8.0_65\bin\javaw.exe<YOUR JDK Path>
In any other eclipse version - make sure the Java Home Directory is set properly either using .ini file or via the eclipse preferences menu.
I need to know how can i upgrade my Weblogic application server from release 1 to release 2.
My OS is windows 7 64 bit. I am new to this some one else installed weblogic so i tried to install it by myself but it is giving me error
C:\Users\User\Downloads>java -D64 -jar wls_121200.jar
Extracting files................................................................
....................................
This installer must be executed using a Java Development Kit (JDK)
but C:\Program Files\Java\jre7 is not a valid JDK.
The Oracle Universal Installer failed. Exiting.
so i unzipped the jar with 7 zip now intaller has started is it the correct way?
Using command prompt, navigate to the directory where you downloaded the installation program.
Launch the installation program by invoking java -jar from the JDK directory on your system,
as shown in the example below:
\home\Oracle\jdk7_15\jdk1.7.0_15\bin\java -jar wls_121200.jar -- sure to replace \home\Oracle\jdk7_15\jdk1.7.0_15 -- in this example with the location of the JDK on your system
The only thing you need is to execute the installer using the jdk needed for it.
for example:
"C:\Program Files\Java\jdk1.7.0_79\bin\java.exe" -jar wls_121200.jar
I used the java.exe from my jdk 7 folder instead of the java installed on my computer.
The weblogic jar folder doesn't matter.
use the following command:
C:\Softwares\Weblogic12c> "\Program Files\Java\jdk1.7.0_05\bin"\java
-jar fmw_12.2.1.0.0_wls.jar
C:\Softwares\Weblogic12c> is the location of my weblogic jar file.
"\Program Files\Java\jdk1.7.0_05\bin"\ is the location of my jdk.
It may happen that the jar is not taking the JAVA_HOME or PATH variables that may be set in the environment variables. In this case you may set it manually in the cmd. GOTO Run->cmd.
Then goto the folder where you have placed your jar
C:\Users\User\Downloads>set JAVA_HOME=C:\Program Files\...\jdk1.8.0_112
C:\Users\User\Downloads>set PATH=C:\Program Files\...\jdk1.8.0_112\bin;%PATH%
and then you may go on executing the jar,
C:\Users\User\Downloads>java -jar wls_121200.jar
It worked for me! Hope it helps. Thanks.
Run as Administrator the Command Prompt
Open the Weblogic's jar directory
Execute the java -jar command over the jar file:
From Runtime Variable (Make sure you have it set)
java -jar wls_121200.jar
From sepecific directory
"C:\Program Files\Java\jdk1.7.0_79\bin\java.exe" -jar wls_121200.jar
I have Eclipse 3.8.1 and I want to see which OSGi bundles are started so I wrote in cmd from eclipse/plugins directory:
java -jar org.eclipse.osgi_3.8.1.v20120830-144521.jar -console
But nothing happens only empty line
Do I have to install something to see them?
If you have eclipse already running then you can access the Host OSGI Console from the Console view
UPDATE
I think this is what you are looking for
$ java -Dosgi.bundles=org.eclipse.equinox.console_1.0.0.v20120522-1841.jar#start,org.apache.felix.gogo.command_0.8.0.v201108120515.jar#start,org.apache.felix.gogo.runtime_0.8.0.v201108120515.jar#start,org.apache.felix.gogo.shell_0.8.0.v201110170705.jar#start -jar org.eclipse.osgi_3.8.1.v20120830-144521.jar -console
There are two options. These are as follows:
Create a configuration folder and put a config.ini file. Set the below content in the config.ini file:
osgi.console.enable.builtin=true
This will start equinox framework with the default console.
Or take the following steps. For details check: http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fconsole_shell.htm
Place the necessary bundles in a folder. The bundles are:
org.apache.felix.gogo.command_0.8.0v<version>.jar
org.apache.felix.gogo.runtime_0.8.0v<version>.jar
org.apache.felix.gogo.shell_0.8.0v<version>.jar
org.eclipse.equinox.console_1.0.0v<version>.jar
org.eclipse.osgi.jar
Create a configuration subfolder and a config.ini file in it.
Add the following entries in the config.ini file:
osgi.bundles=./org.apache.felix.gogo.runtime_0.8.0v<version>.jar#start,\
./org.apache.felix.gogo.command_0.8.0v<version>.jar#start,\
./org.apache.felix.gogo.shell_0.8.0v<version>.jar#start,\
./org.eclipse.equinox.console.jar#start,\
osgi.console.enable.builtin=false
osgi.console=<port>
Start the Equinox framework with the following command line: java -jar org.eclipse.osgi.jar
I have configured Tomcat 7.0.25 with eclipse indigo. When I start tomcat from eclipse , I get following error
java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstrap
I also get a logging error, but I added tomcat-juli.jar to classpath. However I am not able to resolve above error. Although I have verified that catalina.jar is present in TOMCAT_HOME/bin folder, it seems it is not picked in classpath when tomcat is started. I am using JDK 1.6.0_29 .
Any inputs ???
Thanks
It sounds like you have a corrupted 7.0.25 install. There is no need to add catalina.jar to the bin directory. The only JARs required in bin are bootstrap.jar, commons-daemon.jar and tomcat-juli.jar
I just installed a Maven plug-in into eclipse the first time. Now there is a message on eclipse startup, that i should start eclipse in JDK not jre to make Maven components run fine. There is a -vm argument which I used in the eclipse.ini:
-vm C:\Program Files (x86)\Java\
But the message is still there after restart.
I've tried the:
C:\Program Files (x86)\Java\bin
and also the:
C:\Program Files (x86)\Java\bin\java.exe
But nothing changed.
How do I start eclipse in JDK?
Thanks in advance.
If you're using Windows, right click on your eclipse shortcut and select Properties, in the Shortcut tab you can change what's in the Target: box to specify the jdk. I use
"C:\Program Files\eclipse-jee-galileo-sr1 (3.5.1)\eclipse.exe" -vm "C:\Program Files\Java\jdk1.6.0_16\bin\javaw.exe" -vmargs -Xmx1024m -XX:PermSize=256M -XX:MaxPermSize=512M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode
For some reason I couldn't get it to use the jdk when I tried editing the eclipse.ini file.
You can specify which JVM to launch Eclipse under in your eclipse.ini file. There are detailed instructions for different operating systems on the Eclipse wiki.
Found how to add it to the INI, must add the parameter to the line below the -vm option, as below:
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
C:\Program Files\Java\jdk1.6.0_17\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
You have many more options in the Equinox Launcher page.
And you have an example of a complete eclipse.ini with all options there.
When no -vm is specified, the launcher looks for a virtual machine first in a jre directory in the root of eclipse and then on the search path. If java is found in either location, then we look for a jvm shared library (jvm.dll on window, libjvm.so on *nix platforms) relative to that java executable.
If a jvm shared library is found we load it and use the JNI invocation api to start the vm.
If no jvm shared library is found, we exec the java launcher to start the vm in a new process.
-vm specified on command line or in eclipse.ini
Eclipse can be started with "-vm <location>" to indicate a virtual machine to use. There are several possibilities for the value of <location>:
java.exe/javaw.exe: <location> is a path to a java launcher. We exec that java launcher to start the vm in a new process.
jvm.dll or libjvm.so: <location> is a path to a jvm shared library. We attempt to load that library and use the JNI Invocation API to start the vm in the current process.
vmDesc.ee: <location> is a path to a file ending in ".ee". This file is expected to describe the execution environment for a jvm. See the Execution Environment Descriptions page.
directory: <location> is a directory. We look in that directory for:
(1) a default.ee file,
(2) a java launcher or
(3) the jvm shared library.
If we find the jvm shared library, we use JNI invocation.
If we find a launcher, we attempt to find a jvm library in known locations relative to the launcher.
If we find one, we use JNI invocation. If no jvm library is found, we exec java in a new process.