Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-31-2011, 09:17 PM   PM User | #1
jfreak53
Regular Coder

 
jfreak53's Avatar
 
Join Date: May 2004
Location: Guatemala
Posts: 477
Thanks: 19
Thanked 10 Times in 10 Posts
jfreak53 is an unknown quantity at this point
JApplet on web page

I am trying to get my new JApplet to display on a web page, html file.

I am using NetBeans 6.9 for Ubuntu. I created a new project called "JavaApplication1", no main class. Then I added a new JApplet, with the default name of NewJApplet.java.

So I did a clean and build to make sure the JAR under the "dist" dir is fresh and new. Then I created a new HTML file in the dist dir with the new JAR and put this inside:

Code:
<applet code="JavaApplication1.NewJApplet"
      archive="JavaApplication1.jar"
      width=640 height=480>
    </applet>
I run the file and though the grey screen comes up in Chrome, my app is not there, none of my buttons nothing, just the gray frame.

Any thoughts, what did I break? ha ha Thanks.
__________________
"FORTRAN is not a language. It's a way of turning a multi-million dollar mainframe, into a $50 programmable scientific calculator."
http://www.microfastcat.com -- FastCat Software, the fastest software on the NET!
http://www.microthosting.com -- Free reseller web hosting, Hosting, VPS, FREE SMALL HOSTING!!!
http://www.microtronix-tech.com -- Web design and programming
jfreak53 is offline   Reply With Quote
Old 12-31-2011, 10:50 PM   PM User | #2
jfreak53
Regular Coder

 
jfreak53's Avatar
 
Join Date: May 2004
Location: Guatemala
Posts: 477
Thanks: 19
Thanked 10 Times in 10 Posts
jfreak53 is an unknown quantity at this point
Ok, so now it seems to be running. It seems when I open Chrome fresh to load it's page it works, if not it doesn't. Well that's not the deal now.

I am using MySQL library, when I compile the project it puts the mysql library under the lib folder in my dist folder, so should it auto load? It works when I run the project inside NetBeans. But on the page when I click on the button to load the MySQL content nothing loads.

Do I need to include this library somehow?
__________________
"FORTRAN is not a language. It's a way of turning a multi-million dollar mainframe, into a $50 programmable scientific calculator."
http://www.microfastcat.com -- FastCat Software, the fastest software on the NET!
http://www.microthosting.com -- Free reseller web hosting, Hosting, VPS, FREE SMALL HOSTING!!!
http://www.microtronix-tech.com -- Web design and programming
jfreak53 is offline   Reply With Quote
Old 01-01-2012, 01:23 AM   PM User | #3
jfreak53
Regular Coder

 
jfreak53's Avatar
 
Join Date: May 2004
Location: Guatemala
Posts: 477
Thanks: 19
Thanked 10 Times in 10 Posts
jfreak53 is an unknown quantity at this point
Never mind we're good ha ha. I had to sign my app, self sign to be able to load libraries. Then I just loaded mysql.jar file in archive. We're good. Thanks.
__________________
"FORTRAN is not a language. It's a way of turning a multi-million dollar mainframe, into a $50 programmable scientific calculator."
http://www.microfastcat.com -- FastCat Software, the fastest software on the NET!
http://www.microthosting.com -- Free reseller web hosting, Hosting, VPS, FREE SMALL HOSTING!!!
http://www.microtronix-tech.com -- Web design and programming
jfreak53 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 03:36 AM.


Advertisement
Log in to turn off these ads.