Solved

java on mac

Posted on 2010-11-17
10
367 Views
Last Modified: 2012-05-10
I want to do this online course on java located here: http://www.bfoit.org/itp/JavaProgram.html

i need a java compiler and vm in order to work on this course correct?

i have a brand new mac.

Supposedly all macs come with all the java programs that i need.

How do I access them?

I tried to doing the first "hello world" lesson that site and i dont know how to open the .jar file that i created on textedit with a java compiler and virtual machine as directed.
0
Comment
Question by:yond
10 Comments
 
LVL 92

Accepted Solution

by:
objects earned 168 total points
Comment Utility
I'd suggest grabbing an ide such as eclipse

> I tried to doing the first "hello world" lesson that site and i dont know how to open the .jar file that i created on textedit with a java compiler and virtual machine as directed.

open a terminal window if you want to use a command line
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 166 total points
Comment Utility
>>Supposedly all macs come with all the java programs that i need.

If that's correct, then the following command at the command line should return something. If not, download the JDK. Don't use anything other than a text editor to begin with or you'll have an extra learning curve
which javac

Open in new window

0
 

Author Comment

by:yond
Comment Utility
where do i put that command which javac
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
In the terminal appplication
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:yond
Comment Utility
assume that i do have java on the computer how do i open this file i created called hello.java
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
Opening it is not an issue. hello.java is a text file. You need to compile it and run it. For that you need a jdk
0
 
LVL 1

Assisted Solution

by:GenroseSusai
GenroseSusai earned 166 total points
Comment Utility
Go to the Application > Utilities > Terminal
go to the respective folder using cd command and
Now type > pico hello.java
It would open the java file in editor mode.


Hope this helps you.
0
 
LVL 26

Expert Comment

by:mrcoffee365
Comment Utility
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now