Added: 2 years ago
From: ratulcool1
Views: 31,548
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (42)

Sign In or Sign Up now to post a comment!
  • @ratulcool1

    hey..please help me

    i am a student and i desperately need to program java on my mac

    now i am not gettint the "print text encoding" option as u do when u are saving the file , instead i get a "file format" option which is not allowing me to use java

    PLEASE HELP !!!

  • Do I have to install a software on my Mac to work with Java programming? or it's already installed with my Mac?

    I wanna make sure, thanks

  • I copied your diamond file on TextEdit but when i try to save it, it only allows me to save it as a .rtf when i try to change the extension to .java. PLEASE HELP

  • @Thefuzzyman83 when you save select plain text from the drop down menu at the bottom of the pane that appears, then change the .txt to .java

  • @Thefuzzyman83 same problem here

  • thanks for the help!

  • easy on the Enter key.. hehe!

  • many thanks to you.

  • The osx operating system compiles just like any other program. You don't need any extra flags for a simple program like this. javac hello.java will still work. Thanks for posting the vid.

  • Thank you so much! Other videos didn't help at all /: this certainly did, and it was exactly what i was looking for(:

  • whats cd? my .java is not on my pics folder... and copying the path doesnt work?

    what if i have various layers?

  • Thank you :)

  • textedit will not allow me to save my program as .java

  • Hey all my java work is on my flash drive how do I access that in terminal

  • Comment removed

  • if i want to make an extra folder inside 'Documents' called 'Java'.

    and i want to store all my programs inside that 'java' folder' only.

    then how do we define the path in terminal?

  • @beingRaghu no probs just follow this command line:

    cd Documents

    cd Java

    then access ur file

  • @ratulcool1 thanks.!! it worked.

    one more thing.. i tried basic java programs and they worked fine but...

    How do i compile java Applets programs on mac..

    i just added labels . and performed no action on them..but still the program does not compile.

  • @ratulcool1 k thanks.. it worked fine.but when i wrote the java applet code.

    ran it on terminal as u said.but still the msg appears saying "Exception in thread "main" java.lang.NoSuchMethodError:ma­in"

    .. ???

    do i need to install any additional softwares or something to run AWT applets on mac??

  • @beingRaghu hmmm...i really havent looked into using mac terminal for java applets....u can try this program called Blue J for mac...its a very simple and useful compiler and im very sure it can compile and run applets...

  • Thank you so much! Saved my butt!

  • For the record, you can get away with compiling and running java without adding -classpath to javac. Also, I'm not sure why he's running the plain java command afterwards. After you compile, with javac diamond.java, immediately go into java diamond. Seems like he's taking some unnecessary steps for whatever reason

  • This was the first concise answer I came across to my question. Thank you! You rock!

  • What compiler do you use for Classic Eclipse 3.6.1 for Java on Mac Snow Leopard besides Terminal?

  • What does it mean by when someone say RUN this in a terminal?? Someone told me to run the following: sudo dscacheutil -flushcache to flush my cache. What does that mean and how do i do it?

  • it wont let me save it as java :s

  • Thanks, This was helpful

  • is the code different from that of windows? cuz the PSVM (main definition) ends with (string args[]) , I am a beginner, so tell me if I am wrong

  • @inditech96 no dont worry java is universal and the code doesn't change. Yes your right (String args[]) is used but it is not really required when using such a compiler :D

  • Javac -classpath . Welcome1.Java,odt is wat i typed in and thats my ezact file name and i was in the folder it was saved in and i got

    error: Class names, 'Welcome1.Java.odt', are only accepted if annotation processing is explicitly requested

    1 error

    andi i did use open office as a text document and im positive i scripted it right it was taught in a class... so if u could please help it would be much appreciated

  • @vint44 ok well Ill help u out...

    -firstly mail me or send me the source code so I can check it

    -secondly, get blue J it has a really good debugger that is very useful

  • Thanks alot bro really helped me out

  • It worked perfectly!!! thank you so much. I really needed to learn this.

  • Hi

    I hope you can help me with this

    I have a program called CarFuel.java

    so i did as you said

    Javac -classpath . CarFuel.java

    and then java

    the java CarFuel

    its says at java .security.lang

    what is wrong

  • first I need to know a few things...

    -Are u the admin on it?

    -Have u tried to run any other program?

    -do u have jdk installed?

    I will be able to help you if you could plz tell me these.

    Also as I have repeatedly said, use bluej or eclipse they are amazing compilers and save much more time

  • Every time I use the System.out.printIn method Terminal

    tells me it can't find the symbol

    need help!

  • 2 things-

    -Are you sure your java environment is the latest version? jdk 6

    -And second does that mean that System.out.print instead of System.out.println is working? Also, the syntax is System.out.println(" ");

  • Please speak English, not that internet lingo. As well, I tried to load a "Hello World" program and Terminal resulted in

    error: cannot read: helloworld.java

    1 error

    and

    Exception in thread "main" java.lang.NoClassDefFoundError­: helloworld

    please help.

  • Well, here wat you can do, first update your java environment (jdk1.5 i think).... Next are you sure you are compiling it into a class file? your meant to compile it to a class file and then run the class file not the java file.... If nothing works tell me again... otherwise as i've mentioned before blue j is probably the best option and best compiler you can find u should download it :D just google it :D hope this help s:D

  • Instantly favorited! This video may have had problems with sound and clarity, but you described what to do and how to do it, that is what I like to see in a tutorial, and I can't understand why this video does not have WAY more views. I have been looking for a place to compile java for a long time. THANK YOU!!

  • thank you.. i appreciate your appreciation lolz... well my suggestion wouldbe that u get blue j cause its probablythe best compiler for java there is. You can find it in sun microsystem's website, they are the ones who introduced java lolz... thank you...

  • dude how do ucompile i dont know how please reply

  • well actually it depends do u have a mac or a pc? i can easily tell u for both just tell me which part u didnt understand, im sure if u follow the ideo u should but if no tell me :D

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more