Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: Open Html from Jar file

Reply
Thread Tools

Re: Open Html from Jar file

 
 
TS
Guest
Posts: n/a
 
      10-15-2004
I have created a Java Client application which will run on a Windows 2000
PC.
I have created an Html file which I want to include in the Jar file.
My question is, does anyone have a code example of how to display the Html
file in the Jar file from the Client application. The PC this application
will run on has Internet Explorer. So it's fine if the example diplays the
Html document in I.E.

Terry




 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      10-15-2004
On Fri, 15 Oct 2004 13:00:20 -0400, TS wrote:

> I have created an Html file which I want to include in the Jar file.
> My question is, does anyone have a code example of how to display the Html
> file in the Jar file from the Client application. ..


<http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JEditorPane.html#JEditorPane(java.net.URL)>

>..The PC this application
> will run on has Internet Explorer. So it's fine if the example diplays the
> Html document in I.E.


If you need to resort to IE, you can use BrowserLauncher,
but you would need to extract the HTML to disk first.

HTH

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
 
Reply With Quote
 
 
 
 
Thomas Fritsch
Guest
Posts: n/a
 
      10-15-2004
TS wrote:
> I have created a Java Client application which will run on a Windows 2000
> PC.
> I have created an Html file which I want to include in the Jar file.
> My question is, does anyone have a code example of how to display the Html
> file in the Jar file from the Client application. The PC this application
> will run on has Internet Explorer. So it's fine if the example diplays the
> Html document in I.E.
>
> Terry
>

For opening an html-file inside your jar-file use
<http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Class.html#getResource(java.lang.String)>

--
Thomas<dot>Fritsch<squiggle>ops<dot>de

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java -cp a.jar -jar b.jar => Works on Windows, not on Debian cyberco Java 4 02-14-2006 06:27 AM
jaas.jar, jta.jar jdbc-stdext.jar missing from jdk1.5 RPM muttley Java 0 10-20-2005 02:40 PM
Differences of xercesImpl.jar, xercesImpl-J.jar, dom3-xercesImpl.jar ? Arnold Peters Java 0 01-05-2005 10:59 PM
Differences of xercesImpl.jar, xercesImpl-J.jar, dom3-xercesImpl.jar ? Arnold Peters XML 0 01-05-2005 10:59 PM
how to disassembly a .jar file? how to see what are the classes inside the .jar file? lucy Java 6 09-07-2004 09:54 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57