Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

JAR[error] : could not find main class

Thread view: 
asiankent@gmail.com - 13 Mar 2007 02:42 GMT
I tried to call a JPanel with media player from another JPanel.
for example:

inside mainPanel.java
MoviePanel moviePanel = new MoviePanel();

inside MoviePanel.java
do all the media player stuffs.

I can run it at Eclipse, but once I make it as jar file,
error occured
-> Exception in thread "main" java.lang.NoClassDefFoundError: javax/
media/Controller at mainPanel.<init>(mainPanel.java:line number[above
statement])

any one know about this error?

thank you in advanced.
Joshua Cranmer - 13 Mar 2007 03:24 GMT
> I tried to call a JPanel with media player from another JPanel.
> for example:
[quoted text clipped - 14 lines]
>
> thank you in advanced.

javax.media is not a standard java package. Therefore, you would need
the jar file with the code in your extensions directory.
usenetuser@hotmail.co.uk - 13 Mar 2007 10:23 GMT
On 13 Mar, 01:42, asiank...@gmail.com wrote:
> I tried to call a JPanel with media player from another JPanel.
> for example:
[quoted text clipped - 14 lines]
>
> thank you in advanced.

Your classpath doesn't include the JAR for javax.media.Controller and/
or your MANIFEST makes no reference to it.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.