Yes. Just be sure to save as text (not something like RTF) and to save the file with the file type of .java (not .txt, or .java.txt or something).Originally posted by karron lane:
1. i can write the code in a text editor such as tex-edit.
Sure. You can also do it from the command line or other IDEs.2. compile in eclipse? (i downloaded eclipse-java-ganymede-SR1-macosx-carbon.tar.gz)
I'm not an Eclipse user, but I assume there's a way for it to run the current project. We have a forum on IDEs here for Eclipse questions.3. then what? how do i get the program to run?
Generally, you write the code, then compile it into class files, then run the class files.a big issue is that i don't understand the sequence of events in programming, like what happens first followed by what.
Xcode is the Apple IDE. I'm not sure how great it is for Java. (I personally use IntelliJ IDEA). Tomcat is a servlet and JSP container, so you won't be messing with that unless you are writing Java web applications.i found of lot of detailed info (tomcat, xcode, et al) but i don't understand how it all fits together.
I like OmniGraffle for diagramming.we are also required to turn in flowcharts so i'm wondering what software you might recommend.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by karron lane:
hi everyone, thanks so much for the info. i talked to my prof so i have a little better understanding of what my pc classmates will be doing. he said they will be writing and compiling the code from notepad. i don't know how that works out but that's what he said.
an ide is a compiler? do i understand that correctly?
ok, i think i understand the 'big picture' a little bit better but i do have another question. so, i write the code in tex-edit, and compile (or translate the source code) in an app like eclipse, et al, and then . . . . that's my question. after the code is compiled is it now ready to run as an executable (i don't know if that's the right language for the mac platform). will it then be an icon that one dbl clicks on to run from the desktop?
i'm not terminal-ly experienced so will take the text editor route and will probably work with eclipse as it seems to have a rep for ease of use. someone mentioned a particular version of eclipse, i just downloaded the latest/greatest version on the site.
Regards, Rene Larsen
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by karron lane:
...after the code is compiled is it now ready to run as an executable (i don't know if that's the right language for the mac platform). will it then be an icon that one dbl clicks on to run from the desktop? ...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by karron lane:
<<<Actually, you might notice that on a Mac you can run by just double-clicking on the Java class file. But your Windows friends won't have this luxury>>>
i asked my pc prof about this on monday and he said dbl clicking doesn't work to run the file. i'm not at all surprised to learn that it does on a mac. hee.
Regards, Rene Larsen
Originally posted by Rene Larsen:
...I am not able to run a java class by double-clicking on it.
On my system the default Application for a class file is "Jar Launcher.App"
You can double-click on a Java class file to launch your application...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Regards, Rene Larsen
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by Rene Larsen:
... The link you posted is about double-clicking on a jar-file...
You can double-click on a Java class file to launch your application, but this is not a recommended method for application deployment.
Jar Launcher is the program in Mac OS X that launches Java JAR files into the Aqua/Java runtime environment when the JAR file is double clicked. Jar Launcher also launches a class in the same manner... Java programs without any GUI should be run from the command line as they may not properly execute without a pseudo terminal.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by karron lane:
Macintosh:~ kll$ desktop/Java Projects/Hello World/HelloWorldApp.java
-bash: desktop/Java: No such file or directory
Regards, Rene Larsen
“You may never get to touch the Master, but you can tickle his creatures.”
― Thomas Pynchon, Gravity's Rainbow
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|