Article View: borland.public.jbuilder.java.api
Article #2884Inconsistent JBuilder IDE and command line environment
From: John Cheng
Date: Sun, 11 Jul 1999 00:00
Date: Sun, 11 Jul 1999 00:00
23 lines
1648 bytes
1648 bytes
Hi: Mr. and Mrs:
I just got some problem with JBuiler that I found no way to get around. It
seems to me that JBuilder IDE environment have no idea of where the project
is running from. Each classes use theiry own location directory as the base
to
Suppose I have a simple java program (package: test.part1.class1) that will
read data from a file 'data.txt'. If I put 'data.txt' on the root directory
of classpath directory, and use the code:
File file = new File("data.txt");
It works Ok in the command line environment (use: java test.part1.class1).
But it will not work in the IDE environment. In IDE environment, I have to
change my code to:
File file = new File("..\\..\\data.txt");
But again, this will prevent the command line from working.
Is there any way to make these two environment consistent, so that I don' t
need to change my code back and fowth??
Technical Details
Message-ID:
<C9E3E3E848F165CE.DB266673E594A91B.1A0DF19E79E49FDE@lp.airnews.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,b57f5f090fdae547,start X-Google-Attributes: gid1089d0,public From: "John Cheng" <jcheng@fastbus.com> Subject: Inconsistent JBuilder IDE and command line environment Date: 1999/07/11 Message-ID: <C9E3E3E848F165CE.DB266673E594A91B.1A0DF19E79E49FDE@lp.airnews.net> X-Deja-AN: 499777286 X-Orig-Message-ID: <7madur$b5t@library1.airnews.net> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 NNTP-Posting-Time: Sun Jul 11 10:41:15 1999 Organization: Digital Highway (using Airnews.net!) X-MSMail-Priority: Normal NNTP-Proxy-Relay: library1.airnews.net Abuse-Reports-To: abuse at dhc.net to report improper postings Newsgroups: borland.public.jbuilder.java.api