Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 5th, 2005, 01:21 PM
JavaHurtsMyHead JavaHurtsMyHead is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 2 JavaHurtsMyHead User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 34 sec
Reputation Power: 0
Question importing tools

I'm trying to do my summer assignments for my java class next year, and i'm having some problems.. we're supposed to work everything out for ourselves, and i haven't taken any classes in java yet(>.<) so i'd REALLY appreciate if someone could help me out.

The biggest problem I'm having is my complete inability to import tools of any sort. I've copied over the codes i've been told to copy, all of which include some package that's supposed to be imported. I've got all of the things on my computer, but every time i try to compile the program, JCreator tells me that the packages don't exist. Is there a certain place I need to move the files.. how can I fix this?

email: juli.jones@gmail.com (put "java" in the subject line)
AIM: jjflyhighx
or reply here, whatever.

thanks!

Reply With Quote
  #2  
Old August 5th, 2005, 10:45 PM
proghelper proghelper is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 12 proghelper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 46 m 21 sec
Reputation Power: 0
Lightbulb

Have you set your CLASSPATH variable properly?

Also, the package mssing may mean that you may not be inside a folder with the same name as the package name.

Please post your sample code here (a simple one), then it would be easier for others to help with your progamming problem.

-----------------------
Programming ( Assignment / Project ) Help

Reply With Quote
  #3  
Old August 6th, 2005, 04:56 PM
JavaHurtsMyHead JavaHurtsMyHead is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 2 JavaHurtsMyHead User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 34 sec
Reputation Power: 0
Quote:
Originally Posted by proghelper
Have you set your CLASSPATH variable properly?

Also, the package mssing may mean that you may not be inside a folder with the same name as the package name.

Please post your sample code here (a simple one), then it would be easier for others to help with your progamming problem.

-----------------------
Programming ( Assignment / Project ) Help


Well, I did say I was new to this, didn't I? Anyway, this is the code I'm trying to work with..



import apcslib.*;

public class DrawSquare
{
public static void main(String[] args)
{
DrawingTool pencil;
SketchPad paper;

paper= new SketchPad(300, 300);
pencil = new DrawingTool(paper);

pencil.forward(100);
pencil.turnLeft(90);
pencil.forward(100);
pencil.turnLeft(90);
pencil.forward(100);
pencil.turnLeft(90);
pencil.forward(100);
}
}


Yeah, unbearably simple. But when I try to compile it...

--------------------Configuration: DrawSquare - j2sdk1.4.2_08 <Default>--------------------
javac: no source files
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-help Print a synopsis of standard options


Process completed.

Reply With Quote
  #4  
Old August 19th, 2005, 09:08 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Where are you keeping the apcslib package?

Is it a single file (likely called apcslib.jar), or is it a folder with a bunch of class files inside?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > importing tools


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT