Create a custom ptviewer jar file

From PanoTools.org Wiki
(Difference between revisions)
Jump to: navigation, search
m (2 revision(s))
m (Elements that can be packed in a jar: JPEG, not 'jpg')
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==Introduction==
+
Sometimes the simple way by showing your panoramas using the PTViewer Java applet leads to problems, e.g. firewalls at the client side disallow a .jar file to load other files. Then your panoramic won't show at all. Another reason to create custom PTViewer [[JAR]] files might be the need to include a subset of classes to enable special functions and at the same time don't use the full featured applet with a bigger file size.
Sometimes the simple way by showing your panoramas using the PTViewer Java applet leads to problems, e.g. firewalls at the client side disallow a .jar file to load other files. Then your panoramic won't show at all. Another reason to create custom PTViewer jar files might be the need to include a subset of classes to enable special functions and at the same time don't use the full featured applet with a bigger file size.
+
  
 
This article will try to explain for users of different platforms how to build such a jar step by step. A jar is basically a zip archive with a certain structure of elements. Feel free to edit and improve this page.
 
This article will try to explain for users of different platforms how to build such a jar step by step. A jar is basically a zip archive with a certain structure of elements. Feel free to edit and improve this page.
  
--[[User:Zarl|Zarl]] 07:42, 3 Nov 2005 (EST)
+
== Elements that can be packed in a jar ==
 +
* Panoramic image in equirectangular projection as [[JPEG]]
 +
* A small preview image that is shown while the panoramic image is loaded and decompressed
 +
* Classes
 +
* What else?
  
==Elements that can be packed in a jar==
+
== Useful hints ==
*panoramic image in equirectangular projection as jpg
+
=== How to detect the Java version on MacOS X ===
*a small preview image that is shown while the panoramic image is loaded and decompressed
+
*classes
+
*what else?
+
 
+
==useful hints==
+
===how to detect the Java version on MacOS X===
+
 
open Terminal and type
 
open Terminal and type
 
  java -version
 
  java -version
Line 21: Line 18:
 
  Java HotSpot(TM) Client VM (build 1.4.2-56, mixed mode)
 
  Java HotSpot(TM) Client VM (build 1.4.2-56, mixed mode)
 
If you get an error message please [http://docs.info.apple.com/article.html?artnum=106704 update] your Java version
 
If you get an error message please [http://docs.info.apple.com/article.html?artnum=106704 update] your Java version
===other hints===
+
=== Other hints ===
  
==Links==
+
== External links ==
*[http://java.sun.com/docs/books/tutorial/jar/basics/build.html sun.com tutorial "Creating a JAR File"]
+
* [http://java.sun.com/docs/books/tutorial/jar/basics/build.html sun.com tutorial "Creating a JAR File"]
*[http://webuser.fh-furtwangen.de/%7Edersch/PTVJ/helpers.html Helmut Dersch "How to Bundle Extensions"], very basic
+
* [http://webuser.fh-furtwangen.de/%7Edersch/PTVJ/helpers.html Helmut Dersch "How to Bundle Extensions"], very basic
  
[[Category:Software]] [[Category:Software:Platform:Linux]] [[Category:Software:Platform:Mac]] [[Category:Software:Platform:Mac OS X]] [[Category:Software:Platform:Windows]]
+
[[Category:Software:Platform:Linux]]  
[[Category:Tutorial]][[Category:Tutorial:Specialised]]
+
[[Category:Software:Platform:Mac OS X]]  
 +
[[Category:Software:Platform:Windows]]
 +
[[Category:Tutorial:Specialised]]

Latest revision as of 05:37, 26 September 2007

Sometimes the simple way by showing your panoramas using the PTViewer Java applet leads to problems, e.g. firewalls at the client side disallow a .jar file to load other files. Then your panoramic won't show at all. Another reason to create custom PTViewer JAR files might be the need to include a subset of classes to enable special functions and at the same time don't use the full featured applet with a bigger file size.

This article will try to explain for users of different platforms how to build such a jar step by step. A jar is basically a zip archive with a certain structure of elements. Feel free to edit and improve this page.

Contents

[edit] Elements that can be packed in a jar

  • Panoramic image in equirectangular projection as JPEG
  • A small preview image that is shown while the panoramic image is loaded and decompressed
  • Classes
  • What else?

[edit] Useful hints

[edit] How to detect the Java version on MacOS X

open Terminal and type

java -version

press return and you should get something like

java version "1.4.2_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-233)
Java HotSpot(TM) Client VM (build 1.4.2-56, mixed mode)

If you get an error message please update your Java version

[edit] Other hints

[edit] External links

Personal tools
Namespaces

Variants
Actions
Navigation
tools
Tools