Solved

java on mac

Posted on 2010-11-17
10
371 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 92

Accepted Solution

by:
objects earned 168 total points
ID: 34161251
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
ID: 34163072
>>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
ID: 34163955
where do i put that command which javac
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 86

Expert Comment

by:CEHJ
ID: 34163965
In the terminal appplication
0
 

Author Comment

by:yond
ID: 34164062
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
ID: 34164083
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
ID: 34166981
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 27

Expert Comment

by:mrcoffee365
ID: 37445787
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jdbc error in jsp application 20 71
Java: How do I open the default windows program for a given file type 3 53
ejb stateless example 2 40
how to debug htl and js pages 8 53
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

762 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