manifest in netbeans

hello i am building a applet proyect under netbeans , and i will put some .jar libraries on it, how can i write a minifest under netbeans so i can say "my applet need this jar files to run", i have tried just adding the jar and run under netbeans, it works, but when i run the html file it dosent work this messege is displayed

java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.swing)

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPackageAccess(Unknown Source)

at sun.applet.AppletSecurity.checkPackageAccess(Unknown Source)

at sun.applet.AppletClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClassInternal(Unknown Source)

at Client.init(Client.java:28)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Connection refused: connect

java.security.AccessControlException: access denied (java.awt.AWTPermission setWindowAlwaysOnTop)

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPermission(Unknown Source)

at java.awt.Window.setAlwaysOnTop(Unknown Source)

at Entrar.initComponents(Entrar.java:33)

at Entrar.<init>(Entrar.java:15)

at Client.init(Client.java:51)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

please help my i have been posting with not answer

[1822 byte] By [ElvenKinga] at [2007-11-26 13:23:57]
# 1
Adding the jar to the classpath when running outside of NetBeans should fix the problem..
ChuckBinga at 2007-7-7 17:57:06 > top of Java-index,Desktop,Core GUI APIs...
# 2

thi is my html

<HTML>

<HEAD>

<TITLE>Applet HTML Page</TITLE>

</HEAD>

<BODY>

<!--

*** GENERATED applet HTML launcher - DO NOT EDIT IN 'BUILD' FOLDER ***

If you need to modify this HTML launcher file (e.g., to add applet parameters),

copy it to where your applet class is found in the SRC folder. If you do this,

the IDE will use it when you run or debug the applet.

Tip: To exclude an HTML launcher from the JAR file, use exclusion filters in

the Packaging page in the Project Properties dialog.

For more information see the online help.

-->

<H3><HR WIDTH="100%">Applet HTML Page<HR WIDTH="100%"></H3>

<P>

<APPLET code="Client.class" archive="Client.jar,synthetica.jar, syntheticaBlackStar.jar"width=350 height=200></APPLET>

</P>

<HR WIDTH="100%"><FONT SIZE=-1><I>Generated by NetBeans IDE</I></FONT>

</BODY>

</HTML>

but still dosent work

ElvenKinga at 2007-7-7 17:57:06 > top of Java-index,Desktop,Core GUI APIs...
# 3
Where is the jar? It should be in the same directory as the html.Message was edited by: ChuckBing
ChuckBinga at 2007-7-7 17:57:06 > top of Java-index,Desktop,Core GUI APIs...
# 4

they are in the same directory, now this error is displayed by the java console

this my html

<APPLET codebase="classes" code="Client.class" archive= "Client.jar, syntheticaBlackStar.jar, synthetica.jar" width=350 height=200></APPLET>

this is the error in the java console

java.lang.NoClassDefFoundError: de/javasoft/plaf/synthetica/SyntheticaBlackStarLookAndFeel

at java.lang.Class.getDeclaredConstructors0(Native Method)

at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)

at java.lang.Class.getConstructor0(Unknown Source)

at java.lang.Class.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

i have the jars in the same file that i have the html

ElvenKinga at 2007-7-7 17:57:06 > top of Java-index,Desktop,Core GUI APIs...
# 5

If all of the necessary files are in the same directory, then the "codebase" parameter in the html is not needed. See the section on this page titled "Specifying the Applet Directory ".

http://java.sun.com/docs/books/tutorial/deployment/applet/html.html

When you built the project in NB, it should have printed some instruction in the output window about how to run the project outside of NB, also.

ChuckBinga at 2007-7-7 17:57:06 > top of Java-index,Desktop,Core GUI APIs...
# 6

i build the proyect, its a library proyect wiht a applet gui form , i add the jars to the labaries(libraries,righ clic ,add jar), then i run the applet on netbeans and its all ok, then i build proyect, a jar is made by netbeans , y copy the jar and past it in another directory in wich i have the jar of synthetica , the jar of syntheticaBlackStar and the html aunto generated by netbeans , then i modify the html like this

<APPLET code="Client.class" archive= "Client.jar, syntheticaBlackStar.jar, synthetica.jar" width=350 height=200></APPLET>

and run the html this error appears

java.lang.NullPointerException

at sun.applet.AppletPanel.findAppletJDKLevel(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

ElvenKinga at 2007-7-7 17:57:06 > top of Java-index,Desktop,Core GUI APIs...
# 7
that error happend with fire fox 2 but with IE all ok, but, the applet is not with look and feel, only in netbeans i cans ee the efect of the synthetica not in html, why?
ElvenKinga at 2007-7-7 17:57:06 > top of Java-index,Desktop,Core GUI APIs...
# 8
It appears that you have certain parts of the project mislocated, and Java can't find them. If you want to move things about, you need to study up on the requirements if you want the code to work. Until you understand what you're doing, I suggest you let NB construct the project.
ChuckBinga at 2007-7-7 17:57:06 > top of Java-index,Desktop,Core GUI APIs...
# 9

i am buildin all in netbeans, i dont know , maybe im doing something from but i dont know what , please just try to do the same that im doing in net beans and you will see what happend, it works only in netbeans but not whn you try to deploy the jar of the proyect made by netbeans , try it please

ElvenKinga at 2007-7-7 17:57:06 > top of Java-index,Desktop,Core GUI APIs...
# 10

I have been successful creating NB projects, and then running (outside of NB) from the commandline. But, if you're not sure of what you're doing and manually configure the files, there's a good chance of doing it wrong.

I suggest that you allow NB to do the configuring. The NB website has some very good tutorials on creating projects, running them from the commandline, and deploying them to other computers. If you'll review the tutorials and find the one that does what you want, then follow those prcodures, I'm sure that you'll be successful.

The documentation in the website is really quite good. Here are a couple of tutorials that may help:

http://www.netbeans.org/kb/50/tutorial-applets.html

http://www.netbeans.org/kb/articles/javase-deploy.html

ChuckBinga at 2007-7-7 17:57:06 > top of Java-index,Desktop,Core GUI APIs...
# 11
thank you, for your time, what i decide now, is to build the proyect and run it by the java web start plguin for netbeans, so applet will be no problem now, but it seems that the jars that i add for my proyect dosent deploy on the java web start, why is that?
ElvenKinga at 2007-7-7 17:57:06 > top of Java-index,Desktop,Core GUI APIs...