Download JAVA3D API necessary to run java3d?

I have a problem because i made a game in java3d
for new users that connect for the first time they have to download java1.3.1_06 plug in and then they have to download java3d API and installe manually.
is there a way to download only one thing to make the two functions...?
I would like the user to just download a plug in conataining everything necessary to the execution of my game.
thank you seriously,i am blocked.

The short answer to your question is "No".
As you know, installing the JPI is simple. In principle, it would be possible, to autoinstall Java3D as an own JAR-file too. See this article:
http://www.j3d.org/tutorials/quick_fix/auto_install.html
But there are some problems with this solution:
- The Java3D-files in the auto installer are fixed on a specific platform like "J3D 1.2 for Windows & DirectX" etc.
- The JAR-file has to be signed, an that is a process
- You can use a self made (test-) certificate to sign the JAR-file, but (on Windows), double clicking a certificate will install it in the Windows internal database - and that database is ignored by Java since version 1.3. Therefore, the certificate has to be installed in the Java internal certificate database via command line.
I think it's the better way to let download the User the 3D API for his specific platform. As you know, there are some other obstacles:
Each combination of OS, Graphics Acceleration and JVM Version requires different versions of J3D. (For example: The JVM 1.4, requires J3D 1.3. Otherwise, J3D 1.3 requires DirectX 8. But what's with platforms with JVM 1.4 and DirectX 7? For those, there is the J3D 1.3_4 etc...)
Not necessary to say, that this is too much to almost all visitors of a normal website.
Therefore, we have created a "Java 3D Download Guide". It is available on http://www.AniFun3.de/java3d/index.php. It has a neutral Design and can be integrated into other websites. The Download Guide will ask some questions and than redirect to the download page of a specific J3D version.
You have to grant that the User will restart the JVM after installing the 3D API. That means, all browser windows has to be closed after the 3D API installation.
Additional hint: Your game can check the local system for a proper installation of J3D at startup, and, if not installed, redirect to the download guide. The game can feed the download guide with information about the local system like OS name and JVM version. This infomation let the download guide jump over the first page.
Note: To make this "auto check" propper work, your start class must not have any reference to a class of the 3D API!
Here is a code example:
// Member variable: Data structure, containing Java version information
private static int[]          ivJavaVersion    = null;
// Member variable: Flag, that indicates, if the program is started in applet mode or not.
//                  Set this flag to 'false' in main()
private static boolean        ivIsApplet       = true;
* This method returns true, if Java 3D (TM) has been found in the
* environment. If there is a problem using Java 3D, this method will
* (if started in applet mode) try to open the Java 3D Download Guide
* in a new browser.
* @return boolean
private boolean check3DAPI()
     boolean error        = false;
     boolean exit         = false;
     boolean exception    = false;
     String  errorMessage = "";
     boolean isApplet     = (this instanceof Applet);
     String  downloadURL  = "http://www.AniFun3.de/java3d/index.php";
     // Try to access a class of the 3D API
     try
          Class.forName( "javax.media.j3d.VirtualUniverse" ).newInstance();
     catch( Exception e)
          exception = true;
     catch( Error err )
          error = true;
          errorMessage = err.getMessage();
     // 3D API not available
     if( exception )
          // Bring up an error message
          errorMessage = "Java 3D extension not installed. \nPress OK to get redirected to the Java 3D download page\n" + downloadURL;
          System.err.println(errorMessage);
          JOptionPane.showMessageDialog( this, errorMessage, "AniFun3", JOptionPane.ERROR_MESSAGE );
          exit = true;
          // If started in applet mode, try to open the Download Guide
          if( isApplet )
               // OK. Now find some information about the local System
               // and submit it via the query string to the Download Guide.
               // Doing so, will avoid one HTML-Form.
               StringBuffer query = new StringBuffer();
               query.append("?");
               for( int i=0; i<getJavaVersion().length; i++)
                    query.append("jv");
                    query.append(i);
                    query.append("=");
                    query.append(getJavaVersion());
                    query.append("&");
               query.append("os=");
               query.append(System.getProperty("os.name"));     
               // Open the browser     
               try
                    ((Applet)this).getAppletContext().showDocument( new URL(downloadURL + query.toString()), "_blank" );
               catch( Exception ex )
                    ex.printStackTrace();
     // There has occured another error. Java 3D seems to be installed, but maybe not correctly:
     else if( error )
          // Bring up an error message
          errorMessage = "Java 3D reports an error. Maybe the extension is not propper installed.\n" + errorMessage;
          System.err.println(errorMessage);
          JOptionPane.showMessageDialog( this, errorMessage, "AniFun3", JOptionPane.ERROR_MESSAGE );
          exit = true;
     if( exit )
          // Try to shutdown the programm, this will fail in applet mode
          try
               System.exit(1);
          catch( Exception ex )
               // can't shutdown the program
          return false;
     return true;
* This method parses the Java VM version into an integer array.
* @return int[]
private int[] getJavaVersion()
     if( ivJavaVersion == null )
          ivJavaVersion = new int[]{0,0,0,0};
          try
               StringTokenizer tokenizer = new StringTokenizer (System.getProperty("java.version"), ".");
               String actToken = null;
               int i=0;
               while( tokenizer.hasMoreTokens() )
                    actToken = tokenizer.nextToken();
                    try
                         ivJavaVersion[i] = Integer.parseInt(actToken);
                         i++;
                    catch( NumberFormatException e )
                         // Some versions are seperated by a '_'
                         StringTokenizer newTokenizer = new StringTokenizer( actToken, "_" );
                         while( newTokenizer.hasMoreTokens() )
                              ivJavaVersion[i++] = Integer.parseInt(newTokenizer.nextToken());
          catch( Exception e )
               System.out.println("[KFBuddy]::getJavaVersion(): couldn't parse Java version: " + e);
     return ivJavaVersion;
Regards,
OFH

Similar Messages

  • Is it necessary to run cleanmymac software?

    is it necessary to run cleanmymac software on my Macbook Pro?

    Is it necessary, no. Macs perform daily/weekly/monthly periodic maintenance tasks. It may be useful to clear up disk space, though. I recommend:
    How to Optimize Your Mac with Onyx
    Onyx Mac
    It's free and reliable.
    I am posting below community member Kappy's suggestions for OS X maintenance (I can't find it in the User Tips). It is a comprehensive and amazing guide:
    Kappy's Personal Suggestions About OS X Maintenance
    For disk repairs use Disk Utility.  For situations DU cannot handle the best third-party utility is: Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption. Drive Genius provides additional tools not found in Disk Warrior for defragmentation of older drives, disk repair, disk scans, formatting, partitioning, disk copy, and benchmarking.
    Four outstanding sources of information on Mac maintenance are:
    1. OS X Maintenance - MacAttorney.
    2. Mac maintenance Quick Assist
    3. Maintaining Mac OS X
    4. Mac Maintenance Guide
    Periodic Maintenance
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) SeeMac OS X- About background maintenance tasks. If you are running Leopard or later these tasks are run automatically, so there is no need to use any third-party software to force running these tasks.
    If you are using a pre-Leopard version of OS X, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced after Tiger.  (These utilities have limited or no functionality with Snow Leopard, Lion, or Mountain Lion and should not be installed.)
    Defragmentation
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive except when trying to install Boot Camp on a fragmented drive. But you don't need to buy third-party software. All you need is a spare external hard drive and Carbon Copy Cloner.
    Cheap and Easy Defragmentation
    You will have to backup your OS X partition to an external drive, boot from the external drive, use Disk Utility to repartition and reformat your hard drive back to a single volume, then restore your backup to the internal hard drive. You will use Carbon Copy Cloner to create the backup and to restore it.
      1. Get an empty external hard drive and clone your internal drive to the
           external one.
      2. Boot from the external hard drive.
      3. Erase the internal hard drive.
      4. Restore the external clone to the internal hard drive.
    Clone the internal drive to the external drive
      1. Open Carbon Copy Cloner.
      2. Select the Source volume from the left side dropdown menu.
      3. Select the Destination volume from the left side dropdown menu.
      4. Be sure the Block Copy button is not depressed or is ghosted.
      5. Click on the Clone button.
    Destination means the external backup drive. Source means the internal startup drive.
    Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears.  Select the icon for the external drive and click on the upward pointing arrow button.
    After startup do the following:
    Erase internal hard drive
      1. Open Disk Utility in your Utilities folder.
      2. After DU loads select your internal hard drive (this is the entry with the
           mfgr.'s ID and size) from the left side list. Note the SMART status of the
           drive in DU's status area.  If it does not say "Verified" then the drive is
           failing or has failed and will need replacing.  SMART info will not be
           reported  on external drives. Otherwise, click on the Partition tab in the
           DU main window.
      3. Under the Volume Scheme heading set the number of partitions from the
           drop down menu to one. Set the format type to Mac OS Extended
           (Journaled.) Click on the Options button, set the partition scheme to
           GUID then click on the OK button. Click on the Partition button and wait
           until the process has completed.
    Restore the clone to the internal hard drive
      1. Open Carbon Copy Cloner.
      2. Select the Source volume from the left side dropdown menu.
      3. Select the Destination volume from the left side dropdown menu.
      4. Be sure the Block Copy button is not selected or is ghosted.
      5. Click on the Clone button.
    Destination means the internal hard drive. Source means the external startup drive.
    Note that the Source and Destination drives are swapped for this last procedure.
    Malware Protection
    As for malware protection there are few if any such animals affecting OS X. Starting with Lion Apple has included built-in malware protection that is automatically updated as necessary.
    Helpful Links Regarding Malware Protection:
    1. Mac Malware Guide.
    2. Detecting and avoiding malware and spyware
    3. Macintosh Virus Guide
    For general anti-virus protection I recommend only using ClamXav, but it is not necessary if you are keeping your computer's operating system software up to date. You should avoid any other third-party software advertised as providing anti-malware/virus protection. They are not required and could cause the performance of your computer to drop.
    Cache Clearing
    I recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, Mountain Lion Cache Cleaner 7.0.9, Maintenance 1.6.8, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc. Corrupted cache files can cause slowness, kernel panics, and other issues. Although this is not a frequent nor a recurring problem, when it does happen there are tools such as those above to fix the problem.
    If you are using Snow Leopard or earlier, then for emergency cleaning install the freeware utilityApplejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. (AppleJack works with Snow Leopard or earlier.)
    Installing System Updates or Upgrades
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand.
    Backup and Restore
    Having a backup and restore strategy is one of the most important things you can do to maintain your computer. Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
      1. Carbon Copy Cloner.
      2. Deja Vu
      3. SuperDuper!
      4. Synk Pro
      5. Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance and backup and restore.
    Always have a current backup before performing any system updates or upgrades.
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity or 20 GBs, whichever is greater, as free space. Avoid installing utilities that rely on Haxies, SIMBL, or that alter the OS appearance, add features you will rarely if ever need, etc. The more extras you install the greater the probability of having problems. If you install software be sure you know how to uninstall it. Avoid installing multiple new software at the same time. Install one at a time and use it for a while to be sure it's compatible.
    Additional suggestions will be found in:   
    1. Mac OS X speed FAQ
    2. Speeding up Macs
    3. Macintosh OS X Routine Maintenance
    4. Essential Mac Maintenance: Get set up
    5. Essential Mac Maintenance: Rev up your routines
    6. Five Mac maintenance myths
    7. How to Speed up Macs
    8. Myths of required versus not required maintenance for Mac OS X
    Referenced software can be found at CNet Downloads or MacUpdate.
    Most if not all maintenance is for troubleshooting problems. If your computer is running OK, then there isn't really a thing you need to do except repair the hard drive and permissions before installing any new system updates.

  • HT4191 I want to recover or transfer my recent backups (previous downloads) to my iPad am running iOS6 from iOS 5.1.1...HELP?

    The moment I upgraded my Ipad 2 (built-in iOS 5.1.1) recently (as a gift from my mother this Oct 10,2012 this IOS 6.0 message  keeps on popping out of my screen to Upgrade from iOS 5.1.1 to iOS 6.0 (bothersome) so nothing to do but to click UPGRADE & INSTALL... then BAM! the screen locks to the icon of "iTunes with USB cable"  so ..seems to be it simply crash my OS.
    I had to bring my iPad 2 to an Apple Reseller here in the Philippines and they said I cannot go back to iOS 5.1.1 (OH WELL!!) so am stuck with iOS 6.0 (FINE!)
    NOW that problem is.. I've downloads (MOSTLY GAMES) from iTunes Store.. and followed where iTunes is taking them (DOWNLOAD FOLDER) and made a backup.. And now this... error messages from iTunes that I have to Update my iTunes to latest version and yes I DID and STILL same error.. I called the Apple Reseller and instructed me to re-install iTunes...
    Cleaning ALL of APPLE folders from iTunes, and iCloud, Bonjour, etc.  so CLEAN RIGHT? Including regstry files on my Windows XP Laptop SP3...
    Crossing my fingers that all should work this time FRESH INSTALL.. but..NO. the apps are still in my iPad 2 BUT None (ZILCH) on my iTunes (which is common)
    What's so funny was that... I want to recover or transfer my recent backups (previous downloads) to my iPad am running iOS6 from iOS 5.1.1...HELP? I tried to copy frommy backup folder to iTunes folder nothing works.. now now it keeps on Downloading the same stuff.. which i repeatedly deleted.. (ARRGH!!)

    Downgrading of any version of iOS isn't supported by Apple. If you search the web, you'll find instructions that may work, but you're on your own should any problems arise. For many people it goes without problems, but for some it's reportedly bricked their devices.
    iOS 6 works fine on my iPads, though Maps is definitely a work in progress. There are a number of alternative maps apps, or you can just save Google's mobile maps web page to your home screen. For performance or stability problems with iOS, try doing a Restore of your iPad. That fixes for many people a number of problems that upgrading over an existing version of iOS sometimes seems to trigger.
    You're not talking with Apple when you post here, by the way.
    Regards.

  • I get the following error message when trying to download ITunes on my computer running Windows XP - Error writing to file: C:\Program Files\Common Files\Apple Application Support\CFNetwork.dll

    I get the following error message when trying to download ITunes on my computer running Windows XP - Error writing to file: C:\Program Files\Common Files\Apple Application Support\CFNetwork.dll

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there also links to backup and recovery advice should it be needed.
    tt2

  • I've tried to install flash player several different times ans each time i get a connection error message.It downloads fine and when i run the file to start install,it installs up to 5% and then i get the connection error message.Can someone please help m

    I've tried to download the flash player several different times and each time i get a connection error message.It downloads fine and when i run the file to start install, it installs up to 5% and then i get the connection error message. I've tried disabling my antivirus software, closing my browser for install and nothing.Can someone please help me? I'm using Firefox.

    Hi!
    I had the exact same issue, being on a mac. If you are on a mac and the connection error message occurs, then use this link http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player_osx.dmg
    It allows you to download it offline, which is what I used.
    Hope I was help!
    -Haroon

  • Link to download java api?

    Hi,
    I've needed to download the java api a couple of times in the past, and I remember the download was impossible to find on sun's website. Once again I can't figure out where it is. Can anyone help me?
    I wonder why sun doesn't put a link to where you can download the api at the top of their web page that lets you view the api online?

    You mean, like the "Downloads" link at the top of this page?No. I looked through all the downloads, and I didn't find what I was looking for
    Downloads->Java Se->Java SE 6 Documentation
    how hard was that?Not too hard if you know that what you are after is called Java SE 6 Documentation.
    Use google next time... "Java API Download"I did--and with those exact words in a different order. It wasn't helpful.
    http://java.sun.com/javase/reference/api.jspThose are links to the online docs--not downloadable docs.
    Thanks for the help, but lose the attitude--especially for something so trivial for someone who knows their way around the sun website. Sorry for putting you all out.

  • Cant get downloads to show the save & run boxes.. Adobe flash player

    Cant get downloads to show the save & run boxes in Adobe Flash Player

    You need to proved more information or a screenshot; I cannot understand what you mean.

  • I have downloaded whats app/brave temple run but using netsafe card. well now it shows 1.98$ is pending , though m trying with new netsafe card to pay it is showing error saying Pls select valid method for payment. i used same method as i did earlier

    i have downloaded whats app/brave temple run but using netsafe card. well now it shows 1.98$ is pending , though m trying with new netsafe card to pay it is showing error saying Pls select valid method for payment. i used same method as i did earlier

    I have recently started having this problem in PSE8. The Adobe workaround
    did work, but I don't fancy having to re register each time I use it.
    What I have discovered is that it's nothing to do with the image metadata as it occurs before any image is opened.
    It SEEMS to only occur if you use file/open with to open an image in the editor - IE start PSE with that command.
    If you close elements down, and start it using programs/PSE/Elements (or your desktop shortcut) - the panorama feature magically works.
    Each time I've opened the editor 'automatically' using image/open with, it seems to create the problem.
    Hope this helps

  • Any one can provide a link to Download JCO API

    Hi,
    I am looking for JCO API to download for reference. I tried but I could not find a link from where I can download JCO API for reference.
    I do not have OSS ID.
    I need only JCO API just like J2SDK and J2EE API for reference.
    Thanks and regards.
    Ashish Patel.

    Hi
    This is general SAP javadoc link: https://www.sdn.sap.com/irj/sdn/javadocs
    this is for JCo for sp15: https://help.sap.com/javadocs/NW04/current/jc/index.html

  • How to download Java API documentation?

    How to download Java API documentation?

    Oh my... don't the question in here just get more and
    more basic?
    Try and have a look at http://java.sun.com/docs/
    Tell me if you need help with pressing on any of the
    links at that page.
    :)I keep pressing on the links and nothing happens and now my screen is covered in finger smudges.

  • Installed iTunes on a 1TB drive designated H:. Bought a 3TB drive designated G:. Downloaded iTunes update. On "Run" command, it will not let me change the destination drive, so it registers an error, and will not update. Help

    Installed iTunes on a 1TB drive designated H:. Bought a 3TB drive designated G:. Downloaded iTunes update. On "Run" command, it will not let me change the destination drive, so it registers an error, and will not update. App freezes, windows says to upgrade it.

    I went to Edit>Preferences>Advanced, G: is showing as the destination drive.

  • I have downloaded OS X Mountain Lion from the App Store. It took two hours to download but now its not running and I have no idea how to make it run!

    I have downloaded OS X Mountain Lion from the App Store. It took two hours to download but now its not running and I have no idea how to make it run!
    Download was complete and I accepted everything and restarted computer but its still running 10.7.5
    Any idea how to get OS X Mountain Lion to run?

    What you donwloaded was the OS installer. You still have to do the installation.
    To get started, double click on the download, then double click again and follow instructions.

  • Ibuilding a web-site with intit. Today I found out their SiteBuilder software is not Mac compattable. They suggest downloading FireFox. I am running Mac OS X 10.4.11. Is there an older version of FireFox that I can download? Where can it be found?

    I am building a web-site with intit. Today I found out their SiteBuilder software is not Mac compatable. They suggest downloading FireFox. I am running Mac OS X 10.4.11. Is there an older version of FireFox that I can download in order to build my site?

    This is the last version of Firefox which will work with PPC Macs. <br/> http://www.mozilla.com/en-US/firefox/all-older.html

  • Just had help installing cc 2014. get this dialog box when i open the app. One or more files in the adobe folder necessary for running photoshop are missing. Help

    Just had help installing cc 2014. get this dialog box when i open the app. One or more files in the adobe folder necessary for running photoshop are missing. Help

    Please Run the Cleaner tool to remove Ps CC 2014 :http://www.adobe.com/support/contact/cscleanertool.html .
    Restart your system and then try installing Ps CC 2014 again.
    Regards,
    Ashutosh

  • How to download Bluetooth API documentation?

    How can I download Bluetooth API documentation?
    In java.sun.com I found this API documentation but it seem I have
    to stay online to have access. It will very costly for me.
    Anyone can help?
    Thank You.

    Hi!
    You can download the Bluetooth specification and API documentation from here:
    http://jcp.org/en/jsr/detail?id=82
    -Henrik

Maybe you are looking for

  • Is it possible to call VB dll in Java

    Is it possible to call VB dll in Java? If yes then How?

  • Past due- Will be retired error in Software Center

    Hi , I deployed 2 application with Required Purpose and i am getting status - Past due- Will be retired  and such application not deployed . can you please suggest how can i correct, i have tested to install those application with same program/comman

  • How to setup the chinese word with unicode 5CEF?

    Hi, I have one question about traditional chinese word with 峯 in oracle database. How should i to set the coninguration of oracle database ? This chinese word which unicode code is 5CEF. THX.

  • Question- Issue for productoin

    Hello Experts,                       Error 'Quantity falls below minimum stock level' in issue for production  window.What could be the reason for this ?

  • Saving username/passwords

    I have multiple google accounts. I have been able to save a username/password combo (automatic prompt) for two of them, but have not been able to get Firefox to prompt me to save username/password for additional accounts. I've checked everything I co