• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

my first maven build - errors

 
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Aside from autoweka.jar problems the remaining errors are as follows (generalizing)

1) missing package files - I feel that this is really missing in the original project!

2) (ga) PerfectForecastDCCurve - missing class FWriter and a couple of variables {FWriter comes from (1)}

3) (misc) myAutoweka - missing symbols {hope this will disappear after I successfully get the package autoweka.jar installed}

4) (io) Logger - missing class FWriter (comes from 1))

5) (misc) DCCurveTOSAverage - missing symbols - many variables

My plan is to install the missing package autoweka successfully and re-evaluate the error listing

Bob M

 
Marshal
Posts: 3572
505
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bob Matthews wrote:How and where do I add these 4 items ?


This may help: Guide to installing 3rd party JARs
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I tried


but to no avail ?

A problem with the artifactId - not sure what to enter here ??

Bob M
 
Saloon Keeper
Posts: 23774
161
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can either create a custom POM file that defines them OR you can do it this way: https://maven.apache.org/plugins/maven-install-plugin/examples/generic-pom-generation.html

I recommend the second way. It's easier.
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Tim:- still can't achieve goal.....


Bob M
 
Ron McLeod
Marshal
Posts: 3572
505
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried something similar (using CMD, not PS), and it did install the file to my local repository:
 
Ron McLeod
Marshal
Posts: 3572
505
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know much about PowerShell, but this seems to work:
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ron
Tried using cmd

 
Ron McLeod
Marshal
Posts: 3572
505
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe the issue is that you have a space in the file path.  Try wrapping it with quotes:
    -Dfile="C:\Users\rgmat\Eclipse Projects\SymbolicRegression\lib\autoweka.jar"
 
Ron McLeod
Marshal
Posts: 3572
505
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, with the CMD shell, you need to use the ^ line continuation character when you have multiline commands.
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ron

Added quotes as suggested.........build success it said.........

Then tried mvn clean package and got the following..........



Am very confused as to what is happening

Bob M
 
Ron McLeod
Marshal
Posts: 3572
505
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bob - I haven't been paying attention to how your project is structured or the libraries that you are working with, and really just making suggestions when you have had problems using the Maven tool, so I don't think I can provide much help with this particular issue (at this time anyway).

Hopefully Tim and Stephan or others can help.
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ron

I added quotes and kept to just one line for the command

Bob M
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


but then when I "mvn package" errors say the package autoweka doesn't exist ?

Bob M
 
Ron McLeod
Marshal
Posts: 3572
505
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does the dependency in your project POM match what you just installed in your local repository?
It looks like previously, you had this:
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ron

Autoweka is one of hundreds of packages one can add to weka

However: in my C:\......\dc folder I have the following items:-

src and target folders

Help
cls
-DartifactId
-DgeneratePom
-DgroupId
-Dpackaging
-Dversion
mvn

pom

all those bold above are 0kb

Bob M
 
Ron McLeod
Marshal
Posts: 3572
505
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bob Matthews wrote:... but then when I "mvn package" errors say the package autoweka doesn't exist ?


Please copy and paste the error messages that you see.


Bob Matthews wrote:Autoweka is one of hundreds of packages one can add to weka


Is that package in the jar file that you installed?  Did you build the jar file yourself, or download it from some where?  If downloaded, can you share a link?
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ron

Thanks for your time.................

I added the dependency manually to my pom.xml file and now NO error messages regarding autoweka

Phew !

Bob M
 
Ron McLeod
Marshal
Posts: 3572
505
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Great

mvn install:install-file just installs the jar into your local repository, and does not alter your project POM, so if there was a mismatch with what you had previously, you would have needed to manually make a change.
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see looking at the Eclipse version of this project there are 10 java files with the red cross box (bottom left on the file name)

8 of these 10 are related in pairs

Once I find out from the authors, which files I need to simply run the trading strategy, I may end up with very few or no files to investigate (hoping!)

Bob M
 
Ron McLeod
Marshal
Posts: 3572
505
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bob Matthews wrote:I see looking at the Eclipse version of this project there are 10 java files with the red cross box (bottom left on the file name) ...



Did you update Eclipse after making changes to the project POM (right-click on project, then Maven -> Update Project)?



 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ron

No I haven't !

Am a little confused (as usual)

1) Stephan encouraged me to try and build the project using Maven and this is what I am doing (slowly)
    this included building up my current POM.xml file
    also included removing some technical indicator java files (temporarily)

2) The Eclipse Project is as it was from gitHub - the only thing I have done with that is tidy some of the java files to my liking
    haven't touched or found its POM.xml file

Bob M
 
Ron McLeod
Marshal
Posts: 3572
505
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the project that you are working on in Eclipse is separate from the one you are working on from the command line, then you can ignore what I just mentioned.

I assumed that there was only one project and that you were using the IDE to modify the code and using Maven on the command line to build.
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cheers

Bob M
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just to recap:-

I came across an academic paper involving a novel way of trading on the Forex Market
The paper included a download of the Eclipse project from github, which I did

Stephan, Tim and others quickly pointed out that the download was a mess and very poorly put together
Stephan suggested I try and rebuild the project using Maven but then backed off a bit and told me not to waste my time

I have carried on with the idea of trying to rebuild the project using Maven, while tidying up the code in the Eclipse Project

I have learnt a lot about using Maven, thanks to the generous comments from everybody

I  hope to be able to correct the various errors in the Eclipse Project after emailing the authors

I also hope to successfully rebuild the project using Maven (indept of any IDE)

That's the plan anyway

Many thanks for all the help I have received to date

Bob
Dunedin
New Zealand
 
Saloon Keeper
Posts: 13014
281
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bob, do you have a repository somewhere where you can share your progress? Maybe if I have some time later this week we can fill in the gaps.

Did you already delete the files that you wrote in boldface? Those seem to have been created mistakenly by wrongly formulating a Maven command.
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Stephan

I don't have a repository.....please advise what I can do to share

Bob M

p.s. yes - already deleted!
 
Tim Holloway
Saloon Keeper
Posts: 23774
161
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bob Matthews wrote:Hello Stephan

I don't have a repository.....please advise what I can do to share

Bob M

p.s. yes - already deleted!


Github account?
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Stephan and Tim,

Have just created a github account and am waiting for confirmation email

OK - questions being asked about setting up a new repository - what do I answer ?

What do you wish me to upload - please provide clear instructions

Are we talking about 1) Maven build and/or 2) Eclipse Project ?

Bob M
 
Stephan van Hulst
Saloon Keeper
Posts: 13014
281
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The entire project, minus files that Maven generated.

Install Git.

You can use the "git init" command to set up your project folder as a local Git repository, but you'd still have to configure URLs so that you can push your repository to GitHub. Instead, I think there's a quicker and easier way:

Create a new public repository on your GitHub account. Initialize the repository with a .gitignore file that uses the Maven template.

After you've created the repository, clone it on your local file system. In your repository on GitHub, under the green "Code" button, you can find a URL for your repository that starts with https:// and ends with .git. Copy this URL and then run the following command from your desktop folder:

A folder will be created on your desktop that has the same name as your repository on GitHub. Inside it should be a hidden .git folder, and a .gitignore file. Move them to the project folder that you were already working on. You can now delete the empty folder on your desktop. Don't worry that the name of your project folder doesn't match the name of your repository on GitHub; Git doesn't care.

The .git folder contains all the metadata that Git needs to keep track of the state of your repository. Never touch this folder. Not only does it contain your repository configuration, but also old versions of your code that you can revert back to when you've messed up.

The .gitignore file tells Git which files it must ignore. A Git repository should only contain source/resource files that were not created by the build process. A Maven build puts all files it generates in the target/ folder of your project folder, so the Maven template you used when you created your repository should already contain a line that tells Git to ignore the target/ folder.

Getting your changes from your local repository to your GitHub repository is a three step process:

1) Stage changes you want to commit. Your local repository contains a staging area (better known as the "index") that contains all changes you've made to files that you are preparing to commit.

2) Commit staged changes. Git will create a commit that contains all staged changes, and add the commit to the current branch. The changes are now saved forever*. Even if you add more commits, you can always return to older commits to retrieve that version of your code.

3) Push commits to the remote server. When you've made one or more commits, they're not automatically synchronized to GitHub. You must do so explicitly.

Here's how you perform step 1). Run all commands from your project folder:

The "git status" command will show you the current state of your working directory. Initially, it will only show you untracked folders and files, because the only file that Git tracked up to this point was the .gitignore file.

The "git add ." command will add all changes you've made in the current directory to the staging area recursively. If you want, instead of using "." you can also just add individual files or folders.

After you've performed an action with Git, always run "git status" again to see what your working directory looks like right now. You will see that all files you've staged are now in the index. Ensure that the index doesn't contain any files that are inside the target/ folder.

Step 2):

Git creates a commit of all staged changes using the specified commit message, and adds the commit to your current branch. When you check the status of the working directory, you will see that your index is now empty once again, and that your current branch is one commit ahead of the origin.

Step 3):

This pushes all your local commits to the remote server and updates the origin branch. All your committed changes will appear on GitHub.

*: "Forever" means as long as you don't touch the .git folder, and as long as you don't use -f or --force options with git commands. Git makes it very hard for you to lose committed changes. Even if you've deleted all source files in your repository, or if you've used a bunch of git commands wrongly and completely messed up your working directory, an experienced Git user can always revert your working directory to a previously known state. A common mantra among Git users is "Commit early, commit often".
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Got as far as this.................


but can't find folder on Desktop with name same as my repository on GitHub

Bob M

Ah...........found it under C:\Users\rgmat
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK

so my public Git repository is:-

BobM370\Bobsdc

Bob M
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
and now................at Step 2)

c:\Directional_Changes\dc>git commit -m "Add symbolic regression project"
Author identity unknown

*** Please tell me who you are.

Run

 git config --global user.email "you@example.com"
 git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'rgmat@DESKTOP-8L4AK29.(none)')

c:\Directional_Changes\dc>

Bob M
 
Bob Matthews
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think I have done Steps 1) to 3)

Bob M
 
Stephan van Hulst
Saloon Keeper
Posts: 13014
281
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Great job.

Okay, so there's a bunch of wonkiness with your repository:

  • Your project folder contains an empty "[Help" file. Delete it.
  • The <description> element in your POM doesn't describe your project.
  • You're mixing tabs and spaces for indentation in your POM. Use only tabs or only spaces.
  • Your package folders don't use the correct structure: A class named dc.GP.AbstractNode must be in a file dc/GP/AbstractNode.java, NOT dc.GP/AbstractNode.java.
  • Classes in the default package must be directly in your root source folder (src/main/java/), NOT in a folder named "default package".
  • In general, your entire package folder structure should follow the exact same layout as the one in the original repository, the only difference being that your root source folder is src/main/java/ and not src/.
  • Same for resources. Curves.txt should be in src/main/resources/dc/ga/Curves.txt, NOT src/main/resources/Curves.txt.

  • Fix these issues, run a Maven build (I don't expect it to succeed yet) and post your Maven build output here. Also push your changes to GitHub.
     
    Bob Matthews
    Ranch Hand
    Posts: 415
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Done!


    etc. etc.

    Bob M
     
    Stephan van Hulst
    Saloon Keeper
    Posts: 13014
    281
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Make sure that your commit messages reflect the changes that you've committed. The previous commit has a message "Add symbolic regression project", because that was the commit that added the entire project to your source repository. The last commit should have had a commit message such as "Move source files to correct packages".

    You can still amend commit messages after you've made the commit, but only before you've pushed it to a remote server.* Leave it for now, but keep this in mind for future commits.

    Anyway, now we're getting to the part why I said that the project is in such poor shape that it might not even be worth to sink your time in it:

    1) The dc.ga package contains multiple source files that contain different versions of the same class. GA_new is defined in GA_new.java, GA_new_TradingWithAllThreadshold.java and GA_new_checkedInAlready.java. You need to pick one that you want to keep and delete the others, if you want to keep any of them at all, because I see you've also deleted the GA.java file that was in the original repository. If you keep one of the files, you need to rename it to GA_new.java, because the file name must match the class name.

    2) The code base is full of references to the files package. I figured that it must be in one of the jars that the original author wrote themselves and added to the project. It's in the supplement.jar file. You need to create a Maven artifact of this Jar and install it in your local repository.

    * Technically you can still amend a commit message after you've pushed the commit, but it involves pushing with the --force flag, which tells Git to forcefully overwrite whatever commits are on the remote server. If you're the only one that has access to the remote repository and you know what you're doing, you can use the --force flag, but in general it's a bad idea and I would strongly suggest you move on.
     
    Bob Matthews
    Ranch Hand
    Posts: 415
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Done - I think !

    [code]
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project dc: Compilation failure: Compilation failure:
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[13,8] misc.DCCurveTOSAverage is not abstract and does not override abstract method build(java.lang.Double[],double,java.lang.String,dc.ga.DCCurve.Event[],dc.ga.DCCurve.Event[],dc.ga.PreProcess) in misc.DCCurveRegression
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[122,16] trade(dc.ga.PreProcess) in misc.DCCurveTOSAverage cannot override trade(dc.ga.PreProcess) in misc.DCCurveRegression
    [ERROR]   attempting to assign weaker access privileges; was public
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[187,61] cannot find symbol
    [ERROR]   symbol:   variable StartSellQuantity
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[188,65] cannot find symbol
    [ERROR]   symbol:   variable StartSellQuantity
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[193,41] cannot find symbol
    [ERROR]   symbol:   variable positionArrayQuote
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[197,41] cannot find symbol
    [ERROR]   symbol:   variable anticipatedTrend
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[206,41] cannot find symbol
    [ERROR]   symbol:   variable actualTrend
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[233,61] cannot find symbol
    [ERROR]   symbol:   variable StartBuyQuantity
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[234,65] cannot find symbol
    [ERROR]   symbol:   variable StartBuyQuantity
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[244,41] cannot find symbol
    [ERROR]   symbol:   variable anticipatedTrend
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[251,41] cannot find symbol
    [ERROR]   symbol:   variable actualTrend
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[270,49] cannot find symbol
    [ERROR]   symbol:   variable anticipatedTrend
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[270,25] cannot find symbol
    [ERROR]   symbol:   variable anticipatedTrend
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[271,44] cannot find symbol
    [ERROR]   symbol:   variable actualTrend
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[271,25] cannot find symbol
    [ERROR]   symbol:   variable actualTrend
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[273,51] cannot find symbol
    [ERROR]   symbol:   variable positionArrayQuote
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[273,25] cannot find symbol
    [ERROR]   symbol:   variable positionArrayQuote
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[293,16] getMaxMddBase() in misc.DCCurveTOSAverage cannot override getMaxMddBase() in misc.DCCurveRegression
    [ERROR]   attempting to assign weaker access privileges; was public
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[298,24] cannot find symbol
    [ERROR]   symbol:   variable simpleDrawDownQuote
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[302,24] cannot find symbol
    [ERROR]   symbol:   variable simpleDrawDownQuote
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[306,24] cannot find symbol
    [ERROR]   symbol:   variable simpleDrawDownQuote
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[311,24] cannot find symbol
    [ERROR]   symbol:   variable positionArrayQuote
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[314,13] getNumberOfBaseCcyTransactions() in misc.DCCurveTOSAverage cannot override getNumberOfBaseCcyTransactions() in misc.DCCurveRegression
    [ERROR]   attempting to assign weaker access privileges; was public
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[335,21] cannot find symbol
    [ERROR]   symbol:   variable positionArrayQuote
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[338,63] cannot find symbol
    [ERROR]   symbol:   variable positionArrayQuote
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[339,53] cannot find symbol
    [ERROR]   symbol:   variable positionArrayQuote
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[339,95] cannot find symbol
    [ERROR]   symbol:   variable positionArrayQuote
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[339,138] cannot find symbol
    [ERROR]   symbol:   variable positionArrayQuote
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[353,16] trainingTrading(dc.ga.PreProcess) in misc.DCCurveTOSAverage cannot override trainingTrading(dc.ga.PreProcess) in misc.DCCurveRegression
    [ERROR]   attempting to assign weaker access privileges; was public
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[414,61] cannot find symbol
    [ERROR]   symbol:   variable StartSellQuantity
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[415,65] cannot find symbol
    [ERROR]   symbol:   variable StartSellQuantity
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[442,61] cannot find symbol
    [ERROR]   symbol:   variable StartBuyQuantity
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/misc/DCCurveTOSAverage.java:[443,65] cannot find symbol
    [ERROR]   symbol:   variable StartBuyQuantity
    [ERROR]   location: class misc.DCCurveTOSAverage
    [ERROR] /c:/Directional_Changes/dc/src/main/java/dc/ga/PerfectForecastDCCurve.java:[188,47] cannot find symbol
    [ERROR]   symbol:   variable thresholdGPStringDownwardMap
    [ERROR]   location: class dc.ga.GA_new
    [ERROR] /c:/Directional_Changes/dc/src/main/java/dc/ga/PerfectForecastDCCurve.java:[212,27] cannot find symbol
    [ERROR]   symbol:   variable thresholdGPStringDownwardMap
    [ERROR]   location: class dc.ga.GA_new
    [\code]
    etc. etc.

    Bob M
     
    Stephan van Hulst
    Saloon Keeper
    Posts: 13014
    281
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    I don't understand how you got this project to run before you Mavenized it. The error messages are all valid and should be taken at face value. It couldn't have worked even in the original repository. It is, in simple words, "completely broken".

    You must now go through the code and somehow try to figure out what the original author's intention was, and fix the code accordingly.

    For instance, misc.DCCurveTOSAverage.build() takes one argument of type Event[], while misc.DCCurveRegression.build() takes two arguments of type Event[]. You can fix this by either removing the output parameter from the superclass' method signature, or you can add an output parameter to the subclass' method signature. Which of the two approaches is appropriate is difficult to say if you're not the original author.

    Something tells me that all of this code is unused, and the original project only builds the code that it DOES use.

    I noticed that the entry point of the application is the misc.SymbolicRegression class. What you could try is to temporarily move all other Java files in your port of the project to a folder outside of the project, and recursively move them back into the project if a class in the project complains about a missing type. That way you will end up with a minimal set of classes that are actually used by the application, assuming that it doesn't use plugins or reflection.
     
    Bob Matthews
    Ranch Hand
    Posts: 415
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi Stephan


    I don't understand how you got this project to run before you Mavenized it.


    I am sorry but I never intended to imply that I had the Eclipse project working - I haven't!

    I have taken up too much of your time and I thank you for hanging in there

    The Ph.D. student who coded this stuff says he will be free in about a week's time to discuss my problems
    If this eventuates, and we make some progress, I will let you know

    Your final suggestion seems a logical approach while I wait - I shall go down that rabbit hole and see what happens

    Once again, many, many thanks - I have learnt so much over the past weeks

    Kind regards

    Bob M

    New Zealand
    reply
      Bookmark Topic Watch Topic
    • New Topic