Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse Error When I Compile(Error Compiling)
Eclipse Error When I Compile [message #1070865] Thu, 18 July 2013 21:04 Go to next message
Janys Sanz is currently offline Janys SanzFriend
Messages: 3
Registered: July 2013
Junior Member
I am working on a database project using Oracle Database. However, when I try to compile, I get an error. I have googled the error, and tried the solutions others proposed, such as re-installing eclipse, downloading the jdk, but that didn't resolve the issue. I also tried creating a simple "Hello World" program to check if the issue was with my particular database project, but I still got the same error with the Hello World Program. This is the error:

Usage: javaw [-options] class [args...]
(to execute a class)
or javaw [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-server to select the "server" VM
-hotspot is a synonym for the "server" VM [deprecated]
The default VM is server.

-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose:[class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions with specified granularity
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions with specified granularity
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image


How can I resolve this? Any help would be appreciated.
Re: Eclipse Error When I Compile [message #1071173 is a reply to message #1070865] Fri, 19 July 2013 13:48 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
Can you provide more details on exactly what you are doing when you get this message. Compiling in Eclipse doesn't invoke an external instance of Java, so it would make sense that this message comes out when you try to compile unless you are trying to compile using an external program.
Re: Eclipse Error When I Compile [message #1071191 is a reply to message #1071173] Fri, 19 July 2013 14:24 Go to previous messageGo to next message
Janys Sanz is currently offline Janys SanzFriend
Messages: 3
Registered: July 2013
Junior Member
I used the words "compile" and "run" interchangeably in my message above. That was a mistake. I am creating a database project with eclipse using Java and SQL (as an imported java library). When I try to test what I've created, I hit "run", and get the error above.
Re: Eclipse Error When I Compile [message #1071467 is a reply to message #1071191] Sat, 20 July 2013 06:57 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

After you've reproduced the error, go to the Debug View and right-click on the node in the tree that shows the path to your java.exe or javaw.exe and bring up the properties. That will allow you to see the command line that Eclipse invoked. Please reply with the full contents.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Eclipse Error When I Compile [message #1071628 is a reply to message #1071467] Sat, 20 July 2013 18:02 Go to previous message
Janys Sanz is currently offline Janys SanzFriend
Messages: 3
Registered: July 2013
Junior Member
On the properties menu, this is what shows up:

"C:\Program Files\Java\jre7\bin\javaw.exe" -Dfile.encoding=Cp1252
Previous Topic:Visual editor for eclipse sdk 4.2
Next Topic:Can't get JBoss to work in Eclipse
Goto Forum:
  


Current Time: Thu Apr 25 18:10:35 GMT 2024

Powered by FUDForum. Page generated in 0.08581 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top