• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

understanding error messages

 
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am running a java program and partway through I get the following errors:-

Jun 13, 2021 7:02:36 PM com.github.fommil.netlib.ARPACK <clinit>
WARNING: Failed to load implementation from: com.github.fommil.netlib.NativeSystemARPACK
Jun 13, 2021 7:02:36 PM com.github.fommil.netlib.ARPACK <clinit>
WARNING: Failed to load implementation from: com.github.fommil.netlib.NativeRefARPACK
Instance 877 event count 877
starting run 0 autoweka for thresholdString0.00017500at:13/06/2021 19:02:38
2021-06-13 19:02:38.696 [main] WARN Util - Could not auto-detect the location of your Auto-WEKA install - have you moved the classes away from the 'params' diectory?
2021-06-13 19:02:38.697 [main] WARN ExperimentConstructor - No property file .\autoweka.smac.SMACExperimentConstructor.properties.properties found
java.lang.RuntimeException: .\params\attribselection\eval\ is not a valid directory
at autoweka.ApplicabilityTester.getApplicable(ApplicabilityTester.java:107)
at autoweka.ApplicabilityTester.getApplicableAttributeEvaluators(ApplicabilityTester.java:87)
at autoweka.ExperimentConstructor.loadAttributeSelectors(ExperimentConstructor.java:320)
at autoweka.ExperimentConstructor.run(ExperimentConstructor.java:205)
at autoweka.ExperimentConstructor.buildSingle(ExperimentConstructor.java:158)
at misc.myAutoWeka.buildClassifier(myAutoWeka.java:347)
at dc.ga.PreProcess.autoClassifyTraining(PreProcess.java:676)
at dc.ga.PreProcess.runAutoWeka(PreProcess.java:1775)
at misc.SymbolicRegression.<init>(SymbolicRegression.java:784)
at misc.SymbolicRegression.main(SymbolicRegression.java:3444)

How do I figure out where I should put certain files to remove these messages ?

Bob M
 
Sheriff
Posts: 26777
82
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

java.lang.RuntimeException: .\params\attribselection\eval\ is not a valid directory



This implies that the software expects to find that "params" directory in the current working directory. (And then all of those other things under "params" in the normal way.) So you don't have to move anything, just make sure the current working directory is the directory which contains "params" before you run the software.

Not to say that won't break something else though, that project seems pretty brittle to me.

Oh, you posted in the Eclipse forum: To set the current working directory when you run a program inside Eclipse, you go into the Run Configuration and under the Arguments tab you'll find a place where you can put the Working Directory.
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Paul said

To set the current working directory when you run a program inside Eclipse, you go into the Run Configuration and under the Arguments tab you'll find a place where you can put the Working Directory



I can't see exactly what you are referring to under the Arguments tab ?

Bob M
 
Paul Clapham
Sheriff
Posts: 26777
82
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've got a box named "Program Arguments" and then a box named "VM Arguments" and then a couple of checkboxes and finally a section headed "Working Directory". What do you have?
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah - the old scroll down trick

it is set on default and in the box greyed out it says

$(workspace_loc:DirectionalChange)

which is the name of my package

Bob M
 
Paul Clapham
Sheriff
Posts: 26777
82
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Right. So you need to change that so that the Working Directory is the one which contains the params directory.
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did that BUT now it can't even find the dataset now

I don't understand why you would not have the working directory as DirectionalChange, the name of the package, under which ALL other folders (incl. lib/params) exist ?
 
Paul Clapham
Sheriff
Posts: 26777
82
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bob Matthews wrote:I don't understand why you would not have the working directory as DirectionalChange, the name of the package, under which ALL other folders (incl. lib/params) exist ?



It's because, as I believe the error message said, the params folder has to be in the current working directory. Not under it by some number of levels, it has to be in it.

But chances are that you have something else set up incorrectly.

java.lang.RuntimeException: .\params\attribselection\eval\ is not a valid directory



Do you have those directories under the params directory which is now in your current working directory?
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes I do

I am suspicious about weka and autoweka (which is a plugin of weka)

The only way to get autoweka is to install weka and then use the weka manager to get the plugin

But how does my Eclipse project know how to find weka ?
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Question:-

How do I send a screenshot of my file structure to you ?

Bob M
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Am searching to see where the code fails...................

In PreProcess.java


Output:-
File path 4: C:\Users\rgmat\git\SymbolicRegression\DataSets\EUR_USD\fx-spot_EUR_USD_10min_201310.txt
[Ljava.lang.String;@2c88b9fc
2021-06-14 20:11:51.907 [main] WARN Util - Could not auto-detect the location of your Auto-WEKA install - have you moved the classes away from the 'params' diectory?
2021-06-14 20:11:51.909 [main] WARN ExperimentConstructor - No property file .\autoweka.smac.SMACExperimentConstructor.properties.properties found
java.lang.RuntimeException: .\params\attribselection\eval\ is not a valid directory
at autoweka.ApplicabilityTester.getApplicable(ApplicabilityTester.java:107)
at autoweka.ApplicabilityTester.getApplicableAttributeEvaluators(ApplicabilityTester.java:87)
at autoweka.ExperimentConstructor.loadAttributeSelectors(ExperimentConstructor.java:320)
at autoweka.ExperimentConstructor.run(ExperimentConstructor.java:205)
at autoweka.ExperimentConstructor.buildSingle(ExperimentConstructor.java:158)
at misc.myAutoWeka.buildClassifier(myAutoWeka.java:347)
at dc.ga.PreProcess.autoClassifyTraining(PreProcess.java:657)
at dc.ga.PreProcess.runAutoWeka(PreProcess.java:1744)
at misc.SymbolicRegression.<init>(SymbolicRegression.java:697)
at misc.SymbolicRegression.main(SymbolicRegression.java:3158)
An error occured

Does this look like the area of concern ?

Bob M
 
Marshal
Posts: 74048
332
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which is line 657? Doesn't Eclipse direct you to the location of the exception? If you find the file you want, can you get its path? Remember that Eclipse is a development tool; you will create an XXX.jar file from your project and the resources will have to be in that XXX.jar. That is why paths are usually worked out relative to your project's root directory.
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


line 657 is the last line above
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
here is a screen shot showing the path that the error message says is missing ???
Eclipse_Project_sshot.PNG
screen shot
screen shot
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I googled .\params\attribselection\eval\ is not a valid directory" and saw the comment below from the author of autoweka

Auto-WEKA relies on external files to build the parameter space of WEKA models
to explore. These are stored in the params/ directory of the Auto-WEKA
distribution. In addition, you need a few property files that are also included
in the distribution.

These files need to be in the directory that contains the autoweka.jar. You
should be good if you either copy the params/ directory and the property files
into your project, or point it to the autoweka.jar in the directory that you
extracted the distribution to.



Now, autoweka.jar is under the 'lib' folder, as is the "params" folder

Do I follow the instructions above and then "build all" ?

Bob M

 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ooopps

The params folder is where it should be

Bob M
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It has been suggested that I go from Java 11 back to Java 8

Given I have the latest version of Eclipse IDE

Please advise the various steps I need to go back both for Java and Eclipse IDE

Bob M
 
Campbell Ritchie
Marshal
Posts: 74048
332
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Install Java8 as normal; adjust your project properties to use that JDK; realise you have gained nothing by going back to an older version.

Java11 is the latest LTS version at least for the next three months; stay with Java11.
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

adjust your project properties to use that JDK



I installed jre-8u291-windows-i586-iftw.exe

Exactly what do I change under the project properties ?

Bob M
 
Campbell Ritchie
Marshal
Posts: 74048
332
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bob Matthews wrote:. . .
I installed jre-8u291-windows-i586-iftw.exe
. . .

I think you have got the wrong thing; you need a JDK not JRE. I am sure you won't havve any problems if you install both a JDK and a JRE. You probably want an x86_64 version rather than i586; who uses 32‑bit hardware nowadays?
Can't remember which options you have to change, but it is something like, “use a JDK.” You can also run Java11 in backwards compatibility mode back to Java7+ (I think), and Eclipse gives you options for that; use the same version for both source and output.
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could somebody state exactly which of the many downloads I should be picking ?

Bob M
 
Campbell Ritchie
Marshal
Posts: 74048
332
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There seem to be fewer Java8 downloads than there used to be. This is the Java8 JDK for Win10, but it doesn't seem to be available for 64 bits.
I think you should stick with Java11 personally.
 
Bob Matthews
Rancher
Posts: 594
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Campbell

I think you are right............

I did go back to Java 8 but my error messages regarding autoweka remain unchanged

Felix Mohr mentioned ML-Plan (mlplan.org) as an alternative to autoweka

Bob M
 
Campbell Ritchie
Marshal
Posts: 74048
332
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bob Matthews wrote:Thanks Campbell. . .

That's a pleasure. I don't know anything about AutoWEKA and ML‑Plan, I am afraid.
 
Did you miss me? Did you miss this tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic