This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 142386 - cann't run applet in Browser on Mac
Summary: cann't run applet in Browser on Mac
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-31 11:48 UTC by Daria Titova
Modified: 2008-09-24 17:27 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daria Titova 2008-07-31 11:48:10 UTC
Steps to reproduce:
- open applet project in NetBeans
- right-click applet .java file and select Run File (to build applet)
- close opened applet window
- switch to Files view and go to <AppletProject> | build | Applet.html
- right-click Applet.html and select View (to run applet in browser)
Browser is opened, but applet do not work (red 'X' icon instead).

Product Version: NetBeans IDE Dev (Build 200807310201)
Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52
System: Mac OS X version 10.5.3 running on x86_64; MacRoman; en_US (nb)
Comment 1 Petr Jiricka 2008-09-12 15:23:07 UTC
Applet development is now a part of J2SE project features. Could this be related to the fact that when compile on save
is turned on, the jar file is not built? Daria, can you see whether the jar file that the html page refers to in fact
exists? Thanks.
Comment 2 Tomas Zezula 2008-09-24 17:27:54 UTC
The project cannot help you with this problem.
The problem is that you have JDK 1.6 based project which has a swing layout. When you create JApplet and use form editor, it's the default layout. When 
executing the applet in appletviewer it works fine as it runs on the JDK 1.6, but the browser java plugin (Safari, Mozilla) is using JDK 1.5 which doesn't have
swing layout.
Anyway you can use different layout than SwingLayout (set layout on the applet to other, eg. GridBagLayout).
You may be also interested in http://www.netbeans.org/issues/show_bug.cgi?id=139872