Don't know how to create a project correctly.

C

Cal Who

I'm trying to learn fuzzyJ and have some instructions I'm following to
create a project.

To create the project I had to select and interpreter and have no
instruction how to.

I searched and found python.exe and selected that. That could be what I did
wrong because it was only a guess!

The tab in the example containing the project names is Package Explorer in
my computer but it is Packs in the example.

Anyway, when I look at the properties of my project I see:
Resource
Builders
Project References
PyDev- Interpre/Grammer
pydef-PYTHONPATH
run/Debug Settings
Task Repos...

I should be seeing :
Resource
Builders
Java Build Path
Java Code Style
Java Editor
avaDoc Location
Project References
Run/Debug Settings
Task Repo... the rest match

Can you tell me how to fix this?

I don't really know what are the two things in the upper right but they say
Java (in a box) and then Pydev which matches the example . What are they?

I'd appreciate any helpful suggestions of how to precede.


Thanks
 
J

Jeff Higgins

I'd appreciate any helpful suggestions of how to precede.
Why are you attempting to use the Python Development Environment?
You want a Java Development Environment.
See: Help -> Help Contents -> Java development user guide.
 
R

Roedy Green

C

Cal Who

Thanks,

I'm a lot closer but not close enough.

I think I'm still missing something.

From the docs I got an example I'd like to use to check my set up.

It starts like this:

(import nrc.fuzzy.*)

;; Two globals to hold our FuzzyVariables for air temperature and fan speed

defglobal ?*airTempFvar* = new FuzzyVariable "airTemperature" 0.0 100.0 "Deg
C"))

But I get the error that:

Expected a variable name at token "FuzzyVariable"

Seems like it doesn't knoe I'm doing FuzzyJ.



Got any idea what might be wrong?



Thanks
 
C

Cal Who

I know one thing that is wrong. I was given the following to run it:

java -cp
fuzzyJ15a.jar;sfc.jar;symbeans.jar,jess.jar;jsr94.jar;.nrc.fuzzy.jess.FuzzyMain
Test3.clp

I'm not sure if there was a space before the .nrc.fuzzy.jess.FuzzyMain or
not (can't tell from the notes). What do you think?

Anyway, there is no file nrc.fuzzy.jess.FuzzyMain in the same folder as
Test3.clp

The other files are there because I had put them there.

But I can't find out where to find nrc.fuzzy.jess.FuzzyMain. Do you know?

Also why the "." in front of .nrc.fuzzy.jess.FuzzyMain?


Thanks in advance for any helpful hints at all.
 
A

Arved Sandstrom

Cal said:
I know one thing that is wrong. I was given the following to run it:

java -cp
fuzzyJ15a.jar;sfc.jar;symbeans.jar,jess.jar;jsr94.jar;.nrc.fuzzy.jess.FuzzyMain
Test3.clp

I'm not sure if there was a space before the .nrc.fuzzy.jess.FuzzyMain or
not (can't tell from the notes). What do you think?

Anyway, there is no file nrc.fuzzy.jess.FuzzyMain in the same folder as
Test3.clp

The other files are there because I had put them there.

But I can't find out where to find nrc.fuzzy.jess.FuzzyMain. Do you know?

Also why the "." in front of .nrc.fuzzy.jess.FuzzyMain?


Thanks in advance for any helpful hints at all.

On Windows all your classpath separators should be ';', no ','.

Also, you surely don't need a '.' in front of the main class to run.

I would expect the proper command to be more like

java -cp
fuzzyJ15a.jar;sfc.jar;symbeans.jar;jess.jar;jsr94.jar
nrc.fuzzy.jess.FuzzyMain
Test3.clp

To see if nrc.fuzzy.jess.FuzzyMain is in a JAR, as we expect, try

jar tvf fuzzyJ15a.jar

I would assume it's in there, and not in jess.jar which ought to be the
vanilla JAR from Sandia.

AHS
 
C

Cal Who

Arved Sandstrom said:
Cal Who wrote:
I was given the following to run it: fuzzyJ15a.jar;sfc.jar;symbeans.jar,jess.jar;jsr94.jar;.
nrc.fuzzy.jess.FuzzyMain
I would expect the proper command to be more like

java -cp
fuzzyJ15a.jar;sfc.jar;symbeans.jar;jess.jar;jsr94.jar
nrc.fuzzy.jess.FuzzyMain
Test3.clp
This saved me. I had a typo that was not repeated when I type the above so
you never saw it. But when I put your code under mine it showed up.

But in the example -cp does end with a semicolon followed by a dot, which I
can't imagine what it is for.
It works with it and without it.
If you have any idea why it is there I sure like to hear it.

In any event - Thanks a whole lot. You really helped.
 
A

Arved Sandstrom

Cal said:
I was given the following to run it:
fuzzyJ15a.jar;sfc.jar;symbeans.jar,jess.jar;jsr94.jar;.
nrc.fuzzy.jess.FuzzyMain

This saved me. I had a typo that was not repeated when I type the above so
you never saw it. But when I put your code under mine it showed up.

But in the example -cp does end with a semicolon followed by a dot, which I
can't imagine what it is for.
It works with it and without it.
If you have any idea why it is there I sure like to hear it.

In any event - Thanks a whole lot. You really helped.

OK, the lack of a space threw me there, I associated the '.' with the
main class. The '.' as a classpath component simply refers to the
current directory. But at your current stage of testing you don't have
any loose files in your current directory that need to be picked up -
everything's in JARs. Later on you might need it and it can't hurt to
put it back in.

Also, as a tip keep in mind with classpaths that the first element with
a qualifying class or resource wins out. Again, not an issue for you
yet, but down the road it might figure. Helps to keep it in mind.

AHS
 
C

Cal Who

Arved Sandstrom said:
OK, the lack of a space threw me there, I associated the '.' with the main
class. The '.' as a classpath component simply refers to the current
directory. But at your current stage of testing you don't have any loose
files in your current directory that need to be picked up - everything's
in JARs. Later on you might need it and it can't hurt to put it back in.

Also, as a tip keep in mind with classpaths that the first element with a
qualifying class or resource wins out. Again, not an issue for you yet,
but down the road it might figure. Helps to keep it in mind.

AHS

thanks again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top