Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Project Builder questions

Project Builder questions
Thread Tools
allap
Forum Regular
Join Date: Nov 2002
Location: Winnipeg
Status: Offline
Reply With Quote
Sep 19, 2003, 08:32 PM
 
Is it possible to build and run a simple java file in PB, without it being included in a project?

Also, i've been trying out JEdit with the JCompiler plugin, and i can compile my programs without any problems, but i can't seem to get them to run. Any suggestions?
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Sep 19, 2003, 09:16 PM
 
Originally posted by allap:
Is it possible to build and run a simple java file in PB, without it being included in a project?
No. To my knowledge, PB can only build targets, and you can't have a target outside of a project.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Arkham_c
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Sep 19, 2003, 10:22 PM
 
Originally posted by allap:
Is it possible to build and run a simple java file in PB, without it being included in a project?

Also, i've been trying out JEdit with the JCompiler plugin, and i can compile my programs without any problems, but i can't seem to get them to run. Any suggestions?
Terminal?

To compile:

javac myfile.java

To run:

java myfile

Ta-da!
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
allap  (op)
Forum Regular
Join Date: Nov 2002
Location: Winnipeg
Status: Offline
Reply With Quote
Sep 20, 2003, 03:01 AM
 
compiling from the terminal seems to work, but when i run it, i get this message:

java MaLib.class
Exception in thread "main" java.lang.NoClassDefFoundError: MaLib/class

[EDIT] Oops, wasn't supposed to put the .class
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 07:58 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,