aspose file tools*
The moose likes Mac OS and the fly likes Problem compiling java class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Problem compiling java class" Watch "Problem compiling java class" New topic
Author

Problem compiling java class

Miric Ubaydov
Greenhorn

Joined: Sep 24, 2004
Posts: 11
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

Joined: Jan 10, 2002
Posts: 61218
    
  66

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Warren Dew
blacksmith
Ranch Hand

Joined: Mar 04, 2004
Posts: 1332
    
    2
A virtual machine comes preinstalled; the JDK does not, but comes with the developer tools.
Gaurav Mac Mathur
Ranch Hand

Joined: Feb 19, 2002
Posts: 47
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

Joined: Sep 24, 2004
Posts: 11
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

Joined: Jan 10, 2002
Posts: 61218
    
  66

"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

Joined: Jan 10, 2002
Posts: 61218
    
  66

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem compiling java class