Jar doesn't open for applet :(

Hi all,
I am using jre 1.6.0 and running applet.That is working fine.
But when I double click on jar gives an error "Failed to load Main-class manifest attribute from "path""...
I searched through forum and tutorial and referred below link.
http://forum.java.sun.com/thread.jspa?forumID=421&threadID=303383
But no success!!
in html file:
I use archieve="name.jar"
and I make jar with commandline using
jar cmf name.jar *
What should I change?
Plz Help!!!
Regards,
Palak

Then you want to make an executable jar. You do that by
(1) creating a main() method. That is, a method with the signature:
public static void main(String[] args)(2) create a manifest file in the jar with a "Main-Class" attribute that names the class with the main().
(3) package all your classes and supporting files in the jar file.
That's basically it. Note that none of the requirements include "make an applet". Applets have nothing to do with executable jars. They're completely separate issues.
I generally recommend this practice: write your program so it doesn't assume anything other than a GUI -- it doesn't know whether it's an applet or a standalone application (that could be run in an executable jar). Then create two wrapper classes: one is an applet, and one has a main() method. Both will start up your program. Put them both in your jar file. That way, you can start your program by clicking the jar file (thus invoking the class with the main() method, but ignoring the applet wrapper), or in a web page with an <applet> tag (thus invoking the applet wrapper, but ignoring the class with the main() method). This makes for convenient, flexible deployment. But you don't have to do it this way.

Similar Messages

  • Myinfo page in apple site doesn't open for me

    Hi dudes
    my info page in apple site doesn't open for me(https://myinfo.apple.com/). Can anybody help me about it?
    I have another question too: Can I enter mobileme web page with my apple account?
    Best regards

    my info page in apple site doesn't open for me(https://myinfo.apple.com/).
    It opens for me OK, though it is very slow. If waiting a bit doesn't do it you could try clearing your browser's cache.
    I have another question too: Can I enter mobileme web page with my apple account?
    If you mean http://me.com you can only sign in if you have a MobileMe account, either trial or paid for. More information about MobileMe (including how to get the trial) here:
    http://www.wilmut.org.uk/mm

  • In iPhone 4 the camera shutter doesn't open for a minute or more

    Have an iPhone for over 3 years and this is new. Cold start doesn't correct
    Franklin

    hey sorry to hear that
    but my problem is solved now they replaced me a new one ,it was a hardware problem though, they were really friendly with me
    best wishes for ur iphone
    peace

  • ITunes doesn't open, lost song list

    My iTunes doesn't open for some reason, so I downloaded a new iTunes which works, but doesn't have anything showing on it. My music is on an external HD. How do I get the songs to appear on the iTunes again?
    many thanks for anyone that knows!

    gta129,
    Do you have iTunesHelper set to start up when you login? To check if it's in the list of login items:
    1. Open System Preferences.
    2. Click the Accounts pane.
    3. Select your user.
    4. Click the Login Items tab.
    5. See if iTunes Helper is listed here.
    Hope this helps,
    Jennifer B.

  • OER 11.1.1.7 - Asset Navigator doesn't open with an Error - Missing Required permissions attribute in main jar

    Hi,
    I have installed OER-11g version 11.1.1.7 and am successfuly able to open Asset Editor , ImpExp utility and also could harvest SOA and OSB components.
    Issue 1:
    However while trying to open the Navigator of the harvested components in OER console, a new window opens with two sections ( top and bottom). The top one which is a diagram view doesn't open with an error - Missing required permissions attribute in main jar: http://localhost:7101/oer-web/applets/components.aler-thinkmapclient-11.1.1.7.0.jar.
    Please find the screenshot below.
    Issue #2 : While trying to browse for the Assets from OER console. The below error is seen ( missing permissions for components.jexplorer-11.1.1.7.0.jar)
    Could someone direct me on how to solve this issue. Appreciate your help !
    Thanks and regards,
    Sridhar.

    It works for me after I did a small tweak by as mine is a demo install.
    Idea - is to make an security exception for the OER url in Java control console
    Steps to do that :
    1.Go to the control panel and uninstall the 64 bit version of Java
    Open Programs and Features and select the 64 bit version of Java and select Uninstall.
    2.Open up the Java Control Panel
    Found as an option in the standard windows control panel
    3.Check the version by clicking on the About Tab
    If this is not what you expected you can go to java.com and download the latest version.
    4.Click on the Security Tab in the Java Control Panel
    5.Click on the Edit Site List button in the lower RH corner of the control panel
    6.Add your URL to be allowed
    Enter the full path that you use to access this such as https://myequallogics.com or the IP address if that is how you access it (as in http://192.168.0.100 - Https is recommended by Oracle.) Once complete hit OK. You should now see the exception on the security page.
    7.Close out of the control panel.
    8.You can now acess your site through the browser window.
    Thanks to Java error: Missing required Permissions manifest attribute in main jar - Spiceworks for letting me know this.
    regards,
    Sridhar

  • Jar archive for applet?

    My HTML for an applet reads:
    <applet
         code=Go.class
    archive="Go.jar"
    width=120 height=120>
    </applet>
    Go.class is in Go.jar but when I try to run this applet I get an error message that reads:
    load: class Go.class not found.
    java.lang.ClassNotFoundException: Go.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(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)
    Caused by: java.io.FileNotFoundException: C:\Dave\Ethanol\Go\class.class (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 11 more
    WHY OH WHY???

    My HTML for an applet reads:
    <applet
         code=Go.class
    archive="Go.jar"
    width=120 height=120>
    </applet>
    Go.class is in Go.jar but when I try to run this applet I get an error message that reads:
    load: class Go.class not found.
    java.lang.ClassNotFoundException: Go.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(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)
    Caused by: java.io.FileNotFoundException: C:\Dave\Ethanol\Go\class.class (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 11 more
    WHY OH WHY???

  • When i double click itunes it doesn't open it just comes up with an error saying " The itunes library.itl file cannot be found or created. The default location for this file is in the 'itunes' folder in the 'music' folder". How can i fix this?

    When i double click itunes it doesn't open it just comes up with an error saying " The itunes library.itl file cannot be found or created. The default location for this file is in the 'itunes' folder in the 'music' folder. How can i fix this problem?

    Anyone can help to advice how to solve this issue ?

  • Did up date for 10.7.4 to 10.7.5 and update for Aperture and now  Aperture doesn't open.  How do I fix?

    Did up date for 10.7.4 to 10.7.5 and update for Aperture and now  Aperture doesn't open.  How do I fix?

    I heard dump the app and reinstall?  How do I go about that?

  • Firefox doesn't open, but is open in Processes in Task Manager, not even profile manager opens up for Firefox opens up. Please help

    I'm using Vista, 32 bit - not even downloading the beta version of Firefox 4 helps; it downloads (just like the regular version of Firefox, 3.4) and I can install it, but trying to run it gives me nothing - no warning, no text; it just doesn't open up, but is still visible in my start menu, programs folder and in task manager. And not even profile manager opens up.

    Make sure that you do not remove your personal data when you uninstall Firefox. Then you won't lose personal data stored in a different location in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder].
    See also http://kb.mozillazine.org/Profile_backup and [[Backing up your information]]
    A possible cause is security software (firewall) that blocks Firefox.<br />
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox.<br />
    See [[Server not found]] and [[Firewalls]] and http://kb.mozillazine.org/Firewalls
    See also http://kb.mozillazine.org/Browser_will_not_start_up
    Do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database.<br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • I want to open Twitter, but after I type the password, it doesn't open, but the message for saving PW does appear... can you help me?

    I'm using FF on another computer, and pages that I have used in the original have opened, except for Twitter. I give the PW and the message for saving the password appears, but Twitter's HP page doesn't open, instead the registration page is the one that does... I have tried with another system and the page opens, so I know the problem isn't Twitter's, but FF's... can you help me? I want to open Twitter here...

    This issue can be caused by corrupted cookies or cookies that are blocked.
    *check the permissions on the about:permissions page and in "Tools > Page Info > Permissions"
    *https://support.mozilla.org/kb/fix-login-issues-on-websites-require-passwords
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"

  • I have OS 10.8.2 and connected the scanner Canoscan Lide110. I downloaded the drivers, looked installed, the scanner appears in the system preferencies, but it doesn't open!!! what i have to do? thanks in advance for your kind advice!

    I have OS 10.8.2 and connected the scanner Canoscan Lide110. I downloaded the drivers, looked installed, the scanner appears in the system preferencies, but it doesn't open!!! what i have to do? thanks in advance for your kind advice!

    Thanks for your help Karen Serena. Obviously, it appears in the list of printers and scaners on the left, into the "Print and Scan" with system preferencies. Then i click it , it appears on the right, then i click "open scanner" below the name and opens a window writing "open device failed". When i connect the scanner, it makes a sound but that's all...the scanner is dead, even if I push any button...Also there isn't any window opened to prove the function of the scanner, only is shown in the scanner list, that's all.

  • Doesn't open the PDF file (i.e. articles, books pages). It appears a black page. Thanks for help

    Safari doesn't open the PDF file (articles, book page, etc). It appears a black page. Before that it was working perfectly. Thank for your help

    Try this ...
    Open a Finder window then from the menu bar click Go > Go to Folder
    Type or copy paste the following:
    /Library/Internet Plug-Ins
    Click Go.
    If you see the:  AdobePDFViewer plugin (or anything Adobe related) in the Internet Plug-Ins folder, move it to the trash.
    Restart your Mac and try opening a PDF file.

  • HT1338 I'm running MacOS 10.7.5 with all updates and did an update last night for aperture and now aperture doesn't open.  What's Zup?

    I'm running MacOS 10.7.5 with all updates and did an update last night for aperture and now aperture doesn't open.  What's Zup?  Help!

    Also when I do the system update it's not giving me an update for the latest Snow Leopard. I never knew that was available until I started looking around this site and it seems that since I have the internal dual core I should be able to update to mountian lion...is this correct? Will someone please help me and walk me through this. I love my mac I want to have it running like it should be.

  • "search for" doesn't open in a new tab

    when i open this site: http://www.ynet.co.il/home/0,7340,L-1421,00.html and then open a link that pops up a description of a tv program and then i highlight the name of the program and try to search it via right click through "search google for..."
    it doesn't open a new tab at the same window as it use to do at the older version. and when i try to close the window it asks me if i'm sure to close multiple tabs although i don't see them.
    another big problem is that the pop up blocker is not working as well as the previews version, i'm getting lots of pop ups and it's very annoying.

    For the Google website you can set preferences on the Google results page via the gear icon in the top right corner, click that button to open the menu list and select Search settings.
    * http://www.google.com/preferences?hl=en
    Where results open: Open search results in a new browser window.
    You can set the Boolean pref <b>browser.search.openintab</b> to <i>true</i> on the <b>about:config</b> page to open the search results page in a new tab when doing a search via the search bar on the Navigation Toolbar.
    *http://kb.mozillazine.org/about:config

  • I received an email containing pdf files. I am using Adobe Reader Touch for Windows 8. File doesn't open

    I received an email containing pdf files. I am using Adobe Reader Touch for Windows 8. File doesn't open. I am a new user to Windows 8.

    The full featured Reader for Windows 8 is Reader XI.
    Reader Touch works in all Windows 8 systems BUT it is intended mainly for use in mobile tablets - I see no particular reason to use it unless you can'r run Reader XI. Given it is mainly for use on mobile that can't use Flash, we aren't likely to ever see the development team spending their time on this.
    If you want the latest and greatest - at least try Reader XI, not X! (Flash is a separate download, it will prompt).

Maybe you are looking for

  • Problem with httpd and oracle database

    hi i have oracle linux with oracle database 11gR2 i install php with oci as the following link : http://oss.oracle.com/projects/php/dist/documentation/installation.html but when i try phpinfo() i found just only *" /etc/php.d/oci8.ini"* in the result

  • Windows 7 64 Bit Import crash

    I have a core i7 system with 6 GB of RAM running Windows 7 Pro 64 bit. I installed my copy of Lightroom 2 on my C: drive and updated to 2.5. When I click the import button, the program immediately terminates. If I use the menus, the import dialog app

  • Version number and date

    Hi, we have a small help page on all of our modules to indicating who to contact if there are issues etc, and we manually type in a version and date produced of the module.... Is there a way for this to happen traumatically have this inserted? Cheers

  • How  to   download the file and delete the file

    plz send me reply

  • HELP about How to connect with Database without JDBC ?

    Hello all, i have oracel8i database and my programe work fine with JDBC but now i want to connect my programe with database without using JDBC connection please any body tell me syntex for that, Class.forName("oracle.jdbc.driver.OracleDriver"); datab