• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Problem compiling java class

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
blacksmith
Posts: 1332
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A virtual machine comes preinstalled; the JDK does not, but comes with the developer tools.
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic