• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem compiling java class

 
Miric Ubaydov
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having trouble finding java on a macosx thru terminal. i can't recall what i typed on Terminal but i got this message "Could not create the Java virtual machine." could anyone tell by that whether or not my mac includes java sdk? Thanks

Miric
[ September 25, 2004: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, Java comes pre-installed. I always install the developer tools so I'm not 100% sure it's in the base pacvage (but I'm pretty sure it is).

It doesn;t sound like Java is missing, but more like that something is preventing the JVM from starting properly. What that might be I do not know.

Have you visited the Apple Support site and searched for this issue?
 
Warren Dew
blacksmith
Ranch Hand
Posts: 1332
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A virtual machine comes preinstalled; the JDK does not, but comes with the developer tools.
 
Gaurav Mac Mathur
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AFAK
OSX come with JDK installes.
if java -version is not workign means u are log in as wrong user or soemthing.
chack out /System/Library/Frameworks/JavaVM.framework/Versions/
for current version of Java been used.

Latest update available is Java 1.4.2_05
or what is commonly known as
Java 1.4.2.Update 1
 
Miric Ubaydov
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you all. it seems to be found.

although, i have been trying to test one programming that prints messages to the screen prompting the user for her name and her "lucky number', but it doesn't seem to compile and it says that the code has errors which i am sure that it's all correct. Also I am wondering maybe there are specific java commands for mac? is there anything i'm missing below?





[ September 25, 2004: Message edited by: Miric ]

[ September 25, 2004: Message edited by: Miric ]
[ September 25, 2004: Message edited by: Miric ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Miric",

We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also I am wondering maybe there are specific java commands for mac?


Nope. Java is Java, even on the Mac.

It appears that the cs1 package is not in your compilation classpath.

Since your problem is no longer Mac-specific, I'm moving this along to the Java in General(beginner) forum.

I'll also change the title as appropriate.
[ September 25, 2004: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic