Results 1 to 6 of 6
- 11-29-2012, 04:23 PM #1
Member
- Join Date
- Nov 2012
- Posts
- 3
- Rep Power
- 0
Import fit.ColumnFixture - cannot be resolved
Hi,
I am attempting to setup Fitnesse using a very simple java based programme. I am using DR Java to edit the code.
The code is very simple, and is attempting to extend a class provided by fitnesse.
The java file I have created is called rightTriangle.java and is located d:\various directories...\examples\myFixtures\
The code is below, but when I compile it tells me:
Error: The import fit.ColumnFixture cannot be resolved
I am sure the issue is that it can not find ColumnFixture, but I am struggling to find out how to tell it where it is (It is in a java file called fitnesse.jar, that I have located in the same directory, in child directory, and in a parent directory, all to no avail).
I am at the point in a newbie life where I am physically pointing my monitor at my laptop screen and screaming 'look, it's there, I can see it'. Any help very much appreciated.
Java Code:package myFixtures; import fit.ColumnFixture; public class rightTriangle extends ColumnFixture { public double a; public double b; public double c; public boolean right() { return (a*a+b*b)==(c*c); } }Last edited by rich197803; 11-29-2012 at 04:27 PM.
- 11-29-2012, 04:36 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,459
- Rep Power
- 16
Re: Import fit.ColumnFixture - cannot be resolved
This is a classpath thing, and one of the reasons I generally recommend compiling from the command line for your first few apps so you know what the IDE is doing under the hood.
Anyway, you need to find out how to add the jar file to your projects classpath, and I don't know Dr Java so can't really say.
I do that with anything involving networking.
Things are a lot better these days, but printers were the bane of my life...Please do not ask for code as refusal often offends.
- 11-29-2012, 04:38 PM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,399
- Blog Entries
- 7
- Rep Power
- 17
Re: Import fit.ColumnFixture - cannot be resolved
Your compiller can't find that .jar file (as you have noticed); it should be mentioned on the CLASSPATH; I don't know how DR Java handes CLASSPATH values so you should check its manual.
kind regards,
Jos
ps. and who's the slowest old sod again?When people rob a bank they get a penalty; when banks rob people they get a bonus.
- 11-29-2012, 04:44 PM #4
Member
- Join Date
- Nov 2012
- Posts
- 3
- Rep Power
- 0
Re: Import fit.ColumnFixture - cannot be resolved
wow, thankyou for the super fast replies. I will go have a dig around to find out how to add the jar file to the class path and will post back when I find out.
thanks again.
- 11-29-2012, 04:48 PM #5
Member
- Join Date
- Nov 2012
- Posts
- 3
- Rep Power
- 0
Re: Import fit.ColumnFixture - cannot be resolved
HA HA. Found it here:
Adding and Removing JAR files in DrJava
and that worked a treat. Amazing how you go from utter frustration from your own inability to complete the simplest task to joy when it works.
Now for the age old question. Do I leave it alone for now, on a successful note, or do I carry on to quickly find my next issue...:-)
- 11-29-2012, 05:00 PM #6
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,399
- Blog Entries
- 7
- Rep Power
- 17
Re: Import fit.ColumnFixture - cannot be resolved
When people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
the import x cannot be resolved
By Hazza in forum New To JavaReplies: 1Last Post: 11-12-2012, 11:44 AM -
The import java.security cannot be resolved??
By Harrie_KalaChakra in forum EclipseReplies: 9Last Post: 01-20-2010, 05:15 AM -
Error - "The import org.junit cannot be resolved"
By Jessaurum in forum New To JavaReplies: 7Last Post: 11-03-2009, 03:20 AM -
Eclipse "import not resolved" package problem?
By spamsickle in forum New To JavaReplies: 3Last Post: 08-24-2009, 11:44 AM -
The import java.util.Scanner cannot be resolved
By Heather in forum Advanced JavaReplies: 1Last Post: 07-08-2007, 01:05 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks