Dasong

Ranch Hand
+ Follow
since Apr 05, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dasong

JDeveloper is the most stupid IDE in the world. Cause When config the 3rd party jdbc. I chose a correct driver name but wrong (libary)package. after I click ok. I could never change the driver' libary. the driver's name is already in a drop-down list. It could not be removed or redefined. when I try to redefined the driver. it popup a message told me the driver has been defined. how stupid it is.
[ April 04, 2004: Message edited by: Dasong ]
19 years ago



Dasong,
my userguide.html and db.db are not packed in client.jar. I just put them in the same directroy with client.jar.


1.the problem is I cann't access db.db and userguide.html from client.jar. I did put them in the same dir as client.jar.
2. If I put userguide.html in doc\ which is in same dir as client.jar(starting\client.jar, starting\doc\userguide.html). how can I access userguide.html.
my code is ClassLoader.getSystemClassLoader().getSystemResource("userguide.html") this code is for first (1.) condition.
Thanks Wang!
Thank you very much. got your idea.
somebody's online.html is put in a dir. starting\doc\online.html. the classpath is set at starting\. when I put file in classpath I can access them. but if I put them in a dir which in the classpath I don't know how to access them. could you give me some idea please
thanks
your suggestion please.
1.when run java -jar client.jar db.db. Exception was thrown.
2.when I access remote server by run client.jar and try to show online help but client.jar can not find userguide.html.
I put client.jar, db.db, userguide.html in the same dir starting\,
summary: I can not access files outside client.jar.
thanks in advance
we have a dir like starting\. I put the all the client.jar, db.db and Userguide.html files under the starting\ like this starting\client.jar, starting\db.db, starting\Userguide.html,
The condition is I access local db.db instead of remote server.
when I run Java -jar client.jar db.db. Exception was thrown.
when I access remote server using client.jar is ok. But I still failed to show online help by using Userguide.html outside the client.jar
Thanks in advance
Hi Guys,
your suggestion please.
I cann't access db.db and userguide.html(for online help) when run client.jar
thanks
Hi Guys,
your suggestion please.
I cann't access db.db and userguide.html(for online help) when run client.jar
thanks
when use JEditorPane I can not run on jdk1.2.2
but it runs well on jdk1.3.1
Hi Mark,
1.How did you create or get the manifest file like that. I did get manifest. but it doesn't include Main-Class property.
code:
--------------------------------------------------------------------------------
Manifest-Version: 1.0Created-By: 1.3.1 (Sun Microsystems Inc.)
Main-Class: suncertify.client.FlyByNightAirlines
--------------------------------------------------------------------------------
2.your suggestion please.
I cann't access db.db and userguide.html(for online help) when run client.jar
thanks
[ April 16, 2002: Message edited by: Dasong ]
[ April 16, 2002: Message edited by: Dasong ]
Hi Mark,
1.How did you create or get the manifest file like that. I did get manifest when I jar them. but it didn't include Main-Class property.
2.your suggestion please.
I cann't access db.db and userguide.html(for online help) when run client.jar
thanks
Hi guys
your suggestion please.
I cann't access db.db and userguide.html(for online help) when run client.jar
thanks
Hi Mark,
How did you create or get the manifest file like that. I did get manifest. but it doesn't include Main-Class property.
[ April 15, 2002: Message edited by: Dasong ]
Hi Mark
when I run java -jar client.jar
Got the error message as "Failed to load Main-Class manifest attribute from client.jar" . how did you do.