Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > my java is broken !

Reply
Thread Tools

my java is broken !

 
 
bilsch
Guest
Posts: n/a
 
      05-05-2012
On 05/04/2012 05:04 PM, Lew wrote:
> bilsch wrote:
>> Also, a pain in the ass is I must change directory to where the source
>> file resides to compile. I must change directory to where the .class
>> file resides in order to run. These directories are different for every
>> project therefore it's not practical to automate with a script.

>
> That is totally untrue.
>
> Both the compiler ("javac") and the runtime ("java") respect classpaths,
> and the latter respects source paths. With those, you can compile and run
> Java code from any directory regardless of your current directory.


Would you care to elaborate on this or give me a link where I can read
about it?
>
> Please, please, please, please, *please* RTFM!


I don't have the FM
>
> Especially before you start ranting incorrectly about what is not possible.
>
> Why did you ignore the earlier advice to do that?
>


 
Reply With Quote
 
 
 
 
Martin Gregorie
Guest
Posts: n/a
 
      05-05-2012
On Sat, 05 May 2012 15:26:51 -0700, bilsch wrote:

> It is interesting and I grasp the concepts but actually doing those
> things myself is beyond me.
>

Learn to use the command line and teach yourself the basics of writing
shell scripts. Without these basic skills you're essentially crippling
yourself.

If you understand any non-UNIX OS, get a copy of "Linux in a Nutshell".
If don't know any OS at a reasonable depth, i.e you're not a power user,
you need a less terse book. I hear that 'Linux for Dummies' is OK but
haven't used it myself because I started using UNIX and UNIX clones in
the late '80s, so the way Linux works was just more of the same when I
started to use it.

>>>> Also, a pain in the ass is I must change directory to where the
>>>> source file resides to compile. I must change directory to where the
>>>> .class file resides in order to run.
>>>
>>> You don't have to do either of these. I suggest you follow Lew's
>>> suggestion and read the documentation for the java and javac commands.
>>>

>> Seconded.
>>

> I can't find any documentation for command line java and javac.
>

"java -?" or "man java" on the command line. Same for javac.
Or download and read the JDK documentation - this is a separate download
from the JDK or JRE packages. If you don't have it installed you should
do so.


--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
 
Reply With Quote
 
 
 
 
markspace
Guest
Posts: n/a
 
      05-05-2012
On 5/5/2012 3:30 PM, bilsch wrote:

> On 05/04/2012 05:04 PM, Lew wrote:
>> Both the compiler ("javac") and the runtime ("java") respect classpaths,
>>...



> Would you care to elaborate on this or give me a link where I can read
> about it?

....
>
> I don't have the FM



There's an old FAQ floating about the web titled "How to Ask Smart
Questions" or something like that. It also has some standard answers,
like STFW or "search the f'ing web." It's a standard answer because it
works. I typed "javac" into Google and the first thing it should me was
an Oracle page on how to use javac. It was and old 1.4 page, so I
searched for "javac 6" and got the most recent page.

P.S. Found it:

<http://www.catb.org/~esr/faqs/smart-questions.html>


 
Reply With Quote
 
Lew
Guest
Posts: n/a
 
      05-06-2012
bilsch wrote:
> Lew wrote:
>>
>> Please, please, please, please, *please* RTFM!

>
> I don't have the FM


Really? That's what you're going with? Come on, this is a professional group.
You can do better than that.

Given that it's only a click away, that's on you.

You obviously have Internet access, because you are posting here.

Now go RTFM.

<http://lmgtfy.com/?q=Java+javac+command+reference>

--
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedi.../c/cf/Friz.jpg
 
Reply With Quote
 
Lew
Guest
Posts: n/a
 
      05-06-2012
bilsch wrote:
> I can't find any documentation for command line java and javac.


What steps have you taken to find it?

Please specify the queries you used, and to which search engines, and what
other web resources and literature you used.

--
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedi.../c/cf/Friz.jpg
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why are "broken iterators" broken? Steven D'Aprano Python 8 09-28-2008 09:19 PM
Re: Why are "broken iterators" broken? Fredrik Lundh Python 0 09-22-2008 04:32 PM
Re: Why are "broken iterators" broken? Cameron Simpson Python 0 09-22-2008 04:32 AM
PDM broken after Java update Cisco Fan Cisco 1 04-21-2005 03:13 PM
terrible java.net.SocketException: Broken pipe, please HELP!! Tomas Penc Java 3 10-24-2003 09:22 AM



Advertisments