944,139 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2010
  • Java RSS
Feb 8th, 2005
0

why do i compile wrong of SDK?

Expand Post »
I had installed MinGW-3.2.0-rc-3.exe and i was trying to compile a simple code:
Java Syntax (Toggle Plain Text)
  1. public class HelloWorld {
  2. public static void main(String args[]) {
  3. System.out.println("Hello, World");
  4. }
  5. }
then i typed this command under vim, !java d:\progsaved\java\jdk\HellWorld, before i typed this !javac d:\progsaved\progsaved\java\jdk\HelloWorld.java to generate class file. The errors showed that
Java Syntax (Toggle Plain Text)
  1. C:\WINDOWS\system32\cmd.exe /c java -cp=d:\progsaved\java\jdk helloworld
  2. Unrecognized option: -cp=d:\progsaved\java\jdk
  3. Could not create the Java virtual machine.
  4. shell returned 1
  5. Hit any key to close this window...
why do i get this errors?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Mathsniper is offline Offline
1 posts
since Feb 2005
Feb 8th, 2005
0

Re: why do i compile wrong of SDK?

remove the = sign in your -cp=..... parameter.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Database not being populated....
Next Thread in Java Forum Timeline: JTables





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC