Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Java Help

Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-28-2007, 05:11 PM
domestic's Avatar   
domestic domestic is offline
Learning Programmer
 
Join Date: Mar 2007
Location: SCOTLAND!
Age: 19
Posts: 38
Rep Power: 5
domestic is on a distinguished road
Unhappy Creating a JAR

Ok. Heres my problem:

I have used BlueJ and messed with NetBeans - BlueJ Edition 5.0, however neither can succesfully create a working JAR for me. Basically i THINK the problem is the MANIFEST.MF file but truelly I am unsure. What I am trying to do, and can do inside a program like BlueJ or NetBeans - BJ ED, is create a program which calculates TAKT time. The workings are unimportant but I want to create a user interface. NetBeans has a fantastic drap and drop ability similar to that of VB6 which I love. However, I can't get it to work properly in a JAR file. I believe I should be placing the code to call this window in the method: public static void main(String[] args) {}. But despite my efforts, I have achieved nothing but more errors than Vista at first release. So I decided I can't get it to work in BlueJ (except inside the program when I run the "Driver" file which I use to run everything), NetBeans BJ-Ed and NetBeans IDE 5.5 (which I dabled with) fail, so heck lets try something else - Eclipse. Only it has a bigger problem! I downloaded and it looks great. From the start I wa happy. Tutorials > SWT - create a program to display a window with "Hello World!" in it. FANTASTIC I thought. But no! ITS TUTORIAL CANT CREATE THE PROGRAM!!!! It comes up with these errors:

Display cannot be resolved to a type
Display cannot be resolved to a type
Shell cannot be resolved to a type
Shell cannot be resolved to a type

COME ON!!! WHAT IS IT WITH BAD TUTORIALS!!! NETBEANS BJ-Ed was the same for certain things.

So this is a huge call to say:

HELP PLEASE!!!

I just need to use ANY PROGRAM!!! to create a JAR which 1: Works and 2: Displays a GUI for a user.

Thank you. Im off to go cry in a corner now and give my laptop "that look".
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 03-28-2007, 10:36 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 19
Posts: 2,345
Last Blog:
PHP Function Overloadi...
Rep Power: 50
John is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of light
Send a message via AIM to John
Default

I can tell you with 100% confidence the Sun "Hello World" tutorial isn't "bad," but perhaps your system is. I would reccomend uninstalling Java and your IDE's and starting fresh. Have you looked at any of the tutorials I've written for these forums?

http://forum.codecall.net/java-tutor...ial-index.html

The first two should be of interest to you. They go through installing Java and Eclipse. The second one gives you a VERY basic Hello World GUI. Once you have the application up and running, you just right click on the package, go to Export then save it as a JAR.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-29-2007, 04:48 AM
domestic's Avatar   
domestic domestic is offline
Learning Programmer
 
Join Date: Mar 2007
Location: SCOTLAND!
Age: 19
Posts: 38
Rep Power: 5
domestic is on a distinguished road
Default

My apologies. I was refering to the tutorial for NetBeans BlueJ Ed. They tell you to create a BlueJ java app yet they themselves (as seen in the images) create a NetBeans IDE app and as such they tell you to do things that can be done to IDE apps but not BlueJ apps. My mistake for failing to make my meaning clean. Sorry. And I'll try all the tutorials here. What program do you use? Eclipse?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-29-2007, 11:47 AM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 19
Posts: 2,345
Last Blog:
PHP Function Overloadi...
Rep Power: 50
John is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of lightJohn is a glorious beacon of light
Send a message via AIM to John
Default

Yep, eclipse is the best
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating an OS NeedHelp C and C++ 9 10-10-2007 12:41 AM
Creating an analog clock with ActionScript AfTriX Tutorials, Classes and Code 2 01-07-2007 02:19 AM
Creating a Clock AfTriX VB Tutorials 0 01-04-2007 01:53 AM
Creating a backup script NeedHelp General Programming 3 09-07-2006 05:14 AM
Creating Tables leon Database & Database Programming 2 06-12-2006 09:02 AM


All times are GMT -5. The time now is 02:58 PM.

Contest Stats

John ........ 87.50000
dargueta ........ 75.00000
Xav ........ 50.00000
MeTh0Dz ........ 20.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000

Contest Rules

Ads