Jonathan Caldwell

Greenhorn
+ Follow
since Aug 30, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Jonathan Caldwell

okay now I see part of the problem. it is saying Files/Canto/Cumulus

because I told it to go to "Program Files/Canto/Cumulus" it doesn't like the space.
12 years ago
Sorry, I am getting more lost.

It seems that I will have to set the Path every time before I run the program?
(if I use command line)


theoretically; if I could get eclipse to run the program, it would store that program's specific path?


also if I plan to export to an executable JAR how do I bring all of these other JAR files into the new all encompassing JAR?

(I know that eclipse has options for this, but I mean otherwise)


12 years ago
from eclipse:

Run>Run as...>Java application


from command line:

javac TESTER.java
java TESTER.java

12 years ago
I have really only been using eclipse as an error checker, and I have been building my ejp files using ant from command line. I know eclipse will do a lot of work for me, but I like to know whats going on. my end goal for this is to have an executable JAR file to run this first bit of code that generates some text files. maybe I can set my PATH(s) inside an xml file and do all of this outside eclipse?

IDKWTD

Thanks
12 years ago
No the class I am referencing is in a package called com.canto.cumulus I think. or is that the base class?


I have just been using "default package" in my eclipse project, that's a bad idea?


12 years ago
Just as a note of further confusion on my part; on Friday, this program was compiling.

I came back on Monday, and PATH ERROR overload!

Is it possible that there is something outside of my doing that could have caused this to happen?

*
*

Baffled

*
*

12 years ago
Thanks!

Cumulus is a digital asset management software, its interesting; I am building extensions.

(well, I am trying)

This link sent me in the right direction.

It seems the poster and I are in a similar situation.

(except I'm not using Mac, and this is in reference to an older version of cumulus)

so I tried to add a VM argument to eclipse project, but now I get this error:


java.lang.NoClassDefFoundError: Files/Canto/Cumulus
Caused by: java.lang.ClassNotFoundException: Files.Canto.Cumulus
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)

So maybe there are multiple problems?


since I am using eclipse, I am kind of weary of using command line to work around. (since I have tried similar things in the past, and eclipse seems to like to play on its own terms)



Thanks Again
*



12 years ago
I am still working on this same project for school,
I finished all of the code, now out of "nowhere" I can't compile I can't run ?

I am getting this error:


Exception in thread "main" java.lang.UnsatisfiedLinkError: no CumulusJC in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)



The JAR file its looking for is right where eclipse thinks it should be.
-classpath shows the JAR file
I set native library location to the JAR location as well...

still getting this same error?

at TESTER.main(TESTER.java:19)
(line 19)

(the first reference to the JAR)
any suggestions?
12 years ago
oh man
I feel like a goofball.

sorry Matthew Brown you were right. I didnt need both loops.

its working now.

now I have
1=1
2=2
and so on.

I was making it more complicated than I need to



I need to look into SSCCE I think when I was reading (quickly) I skipped over the self contained part

oops

I will also look into stack trace.

I am new to java and new to programming in general. im not sure if I am doing things the right way... not sure if process or results are more important?

thanks everyone.
12 years ago
ok a little more info also...maybe this helps?
(or makes it more confusing)
:/


if the first item in the combo box is selected the selected index is 1
and so on
(right now there are 5 in the box)
if I print them out to the text field
1=1
2=2
3=3
4=4
5=5

but when im using the selected index as the loop determinant;

1=5
2=4
3=3
4=4
5=5
12 years ago
Firstly, Thanks for all the responses.

yes

oops I don't know how to handle the exception yet.
(but if I am reading from a file, and the information is being read in...I can assume its working?)
(for testing purposes of course...not quite sure what a stack trace is?)

as far as SSCCE, even if I posted all of my code...some stuff is being taken from servers etc.

couldnt be run from your machine unless you some how infiltrated...




yes I mean to have two loops.
the permissions are listed in the same order in the file as the users list in the combo box.
so I am trying to use the selected index to control the amount of times the loop loops...

so the permission corresponding to the index will be isolated.

I tested the indexes.

they are being received correctly.

but for some reason (maybe its the two loops conflicting?)

its not looping index amount of times.

and I was trying to figure out how I could make this work in a do loop...but I am still stumped there?


thanks again.
hope this makes more sense this time.


12 years ago
12 years ago
yes I figured out that it doesn't work that way,
but I am not getting the desired result with

i<index
or
i<=index
and especially not
i==index
12 years ago


is it possible to use == here?

My code is compiling and the window is being created, the index is filled...but im not getting the output.

I am basically trying to "do until"

but java doesn't have that

I was trying to use a while loop...but I cant think of how that would work?

I need the loop to loop exactly "Index" amount of times.


Thanks
12 years ago
Thanks,
I am working on this again now. looking into your suggestions.
I have so many questions its hard to get any definite answers.
I see what you mean about wrappers, because the other code might be interfering with the string creation.

I'll get back soon with results/more questions.

12 years ago