first off thanks for any help! I am relatively proficient at programming in languages like python, but that's not going to stop me from asking a dumb, and probably very basic question about JAVA
I am working on some satellite orbit research for graduate school, and I am using the maven compiled java project OREKIT. Information on OREKIT can be found here;https://www.orekit.org/site-orekit-9.2
I believe I have built the project correctly using the steps to import a maven project into eclipse, but I am having issues getting any of the included tutorial programs included to run. The first errors I get are "Error: Could not find or load main class" and then followed by the name of whichever tutorial script I'm attempting to run.
MY attempt at solutions, which have not worked are as follows: First I attempted to create an entirely different java project with a main class and import the scripts I wanted to run, but I think this created more problems than it solved. Secondly, in the OREKIT project folder which was created with the maven building, there is a src folder. I right clicked and set it as the source. It contains a "main" folder with various contents but still the errors persist.
I probably am asking something extremely simple, and googlable but I haven't figured out what to google or what to do to fix my problem. If anyone has some suggestions I would be extremely grateful!
Thanks a ton!
Related
I'm using library ESP8266 audio, which contains lot of files. I'm using just a few of them, but when I want to build my project, platformio tryes to complie ewerything. It's quite issue, because unused filles has dependecies, which are not included in my project (eg. SD card library, file system library...). I can build my code with arduino IDE without any issues, but I'm not able to do the same thing in platformio. I tried to tweak src_filter flag, but it has no effect at all. I'm stucked on this for more than day and I wasn't able to find any relevant informations :/
Thank you for your answers.
Oh, I solved it myself! :D I have set 'lib_ldf_mode' to 'deep' on platformio.ini. It's now acts exactly as I need. It starts in 'src/' folder and then recursively compiles imports and imports of imports and so on.
I am a student and we have an assignment where we collaborate on a github shared repository. Me and another student in our group have the same problem: On our computers IntelliJ cannot find the Main class and compile it.
On my other projects, running Mains is not a problem and therefore I can't find any help through the search results I get from Google and Youtube.
Can't even click run since the run configurations are weird too, but I fixed that before and the Main class-problem remained. That problem came back now since I've tried to re-clone the project a few times now... The other 3 students in the group can run Main. I don't know if it has anything to do with it but we don't have a src -folder, is that confusing the compiler or anything?
Would really appreciate some help.
Picture: It doesn't compile.
don't know if it has anything to do with it but we don't have a src -folder, is that confusing the compiler or anything?
It can be for IntelliJ, managing a Java project.
Check if you can define your 'sample' folder as a source root, which would force IntelliJ to consider the sources inside sample as a program to compile.
I'm currently trying to move a solution with multiple projects from VS 2015 to VS 2019.It consists of one application and a couple of class libraries, target framework for each is .net 4.5.1. I have made a local copy of the solution to do this.
Most of the projects compile without a problem, but some of the one that are used as AddIns for the application don't.
When trying to build, doesn't matter if the projects by themselves or the whole solution, it fails because it's looking for itself. In my example picture, the project ZZ_WPF_Bank_AddIn is, while trying to build, is looking for the ZZ_WPF_Bank_AddIn in the bin folder of another project in the solution.
I tried just copying the dll from the original project, to see what happens, but it just points to the same dll missing in another project.
Has someone encountered this behaviour before? I tried googling it, but couldn't find anything useful.enter image description here
For anyone who might stumble upon this:
The solution to my problem was removing all references to projects inside the solution and adding them via Browse, noch via the projects tab on the left side. For some reason the bindings were not working properly after the migration.
I am new to wicket and dont know how to use mvn, i want to run; http://www.wicket-library.com/wicket-examples/forminput/?2 application. In the link there source codes, so how can i create project and call the jars, libraries and get work the project. Which steps should i follow. Thanks for your helps. Soso
I really think you need to start by learning Maven. It is really simple to learn the basics and it will help you for a big part of your future projects. The time you'll spend learning Maven will allow you to understand your future framework and model your projects the right way. I think it requires less time to understand Maven than a whole discussion here explaining how to run it properly in Eclipse.
Basically, all you will need to do is run mvn jetty:run in the folder of your clone of wicket-examples to get started. Once you got there, grab a tutorial or two explaining the basics of Maven in order to really get started.
Following is a question that is posted on http://dev.eclipse.org in April 2003. The original question is:
Hi all,
in eclipse i have created several java
projects representing different
modules for one web application. i'd
like to configure one output folder
for all of these projects. Any time i
build a subproject the content of the
output folder is deleted, so i loose
the classes of all other subprojects.
I think there must be a switch or
something like that to tell eclipse
not to clear the content of the output
folder when it builds a project - but
i just can't find it.
Thanks for your help!
Alex
I am trying to see if I could get a definitve answer for this question. I have tried to find out to see if this question has already been addressed and I was not able to find any except for the following answer:
Window-->Preferences-->Java-->Compiler-->Build Path
The above answer did not help me much.
Hmm... I think this approach will bring more trouble than it's worth. Sure it's a priori a quick and dirty fix to integrating your projects together but you are only pushing the problem forward. It is good practice to keep your modules as isolated as possible from each-other, trying to merge the compiled code in a single location is working against the way the IDE was designed and will only bring trouble.
I would recommend that you look into maven to build and package your modules. Then referencing them is just a matter of adding a declaration in the project that requires it and you are integrated. Of course you will need to learn it but it provides a good base of conventions that when followed yield almost effortless integration. Plus reusing some modules in another project becomes trivial so you gain in all fronts.
To answer the other question in the thread when they wish to make a tree of related projects it is possible though somewhat clumsy. Eclipse will always present projects as a flat list, however the folders can be arranged in a tree nonetheless. Just specify a custom location when creating a project or import the project from the sub-folder. Again here Maven can help a lot with it's concept of modules.
As eugener mentioned in his comment, there are plugins for maven that will make most of these tasks trivial. You may find all you are looking for just by exploring the gui, this said, reading the maven literature will give you good insight on how it works and what it can do for you.