-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: java applet and classpath
PostPosted: Wed Jul 14, 2004 12:44 pm 
Newbie

Joined: Wed Mar 10, 2004 12:29 pm
Posts: 4
Dear java programmers,

this is my problem:
I need to use some classes from a project packaged in a jar into an applet.
How can I resolve this?
An applet can have it's classpath on the server where It cames from?!
I import the needed packages in the applet, compiling is normal and easy,
I got a classNotDefFoundError at runtime. The applet and the package jar
are in the same directory.




Thanx,

- Aniel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 14, 2004 1:09 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
what is the hibernate problem?

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 14, 2004 1:32 pm 
Newbie

Joined: Wed Mar 10, 2004 12:29 pm
Posts: 4
yes I know this isnt an hibernate problem.
'cause this caused to me a lot of problems I thought that the hibernate community can help me.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 15, 2004 7:29 am 
Newbie

Joined: Wed Jul 14, 2004 4:36 am
Posts: 3
Location: Noviglio, Italy
Hi,

I suggest you to look for a forum for base java problems like yours. I'm sure there you'll find the help you need.

For the applet problem, start unpacking the jar with the code you need, and pack it together with the applet code. I don't remember exactly where applets look for classes, so this way you skip this topic.
But it's more likely you're facing a signing problem (signed applet and stuff like this)

Enrico


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 19, 2004 6:08 pm 
Newbie

Joined: Tue Jun 01, 2004 8:06 pm
Posts: 9
Location: Hamilton, Ontario, Canada
You should be posting this message in the forums at http://java.sun.com

To fix your problem you need to set the codebase, this will tell the applet where to download the jar files for you applet.

<applet code="TestApplet.class" codebase="/java/" width="1" height="1">
<param name="stuff" value="5">
</applet>

***NOTE: /java/ would be the equivalent to an Alias in Apache.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.