Randoop execution error, unable to load class due to exceptionAccess restriction on class due to restriction on required library rt.jar?Build project into a JAR automatically in EclipseHow to create a project from existing source in Eclipse and then find it?Eclipse how to link a jar containing javadocs/source with its binary?How do I put all required JAR files in a library folder inside the final JAR file with Maven?How to get the path of running java programHow to solve java.lang.NoClassDefFoundError?What does “Could not find or load main class” mean?Java program executes in eclipse but not in terminalRandoop junit generator pupulates null value for parameter values
Watts vs. Volt Amps
Should an arbiter claim draw at a K+R vs K+R endgame?
Is open-sourcing the code of a webapp not recommended?
How to generate all commutative pairings of list elements?
Compiling c files on ubuntu and using the executable on Windows
Can the poison from Kingsmen be concocted?
Soft question: Examples where lack of mathematical rigour cause security breaches?
Why doesn’t a normal window produce an apparent rainbow?
What could have caused a rear derailleur to end up in the back wheel suddenly?
Were Alexander the Great and Hephaestion lovers?
How would a aircraft visually signal "in distress"?
Why did Canadian English remain so close to standard U.S English?
Frame failure sudden death?
Arriving at the same result with the opposite hypotheses
Should I give professor gift at the beginning of my PhD?
How to build suspense or so to establish and justify xenophobia of characters in the eyes of the reader?
Was there a priest on the Titanic who stayed on the ship giving confession to as many as he could?
How to retract an idea already pitched to an employer?
Can an Aarakocra use a shield while flying?
Confusion about off peak timings of London trains
What's the name of this light airplane?
How did students remember what to practise between lessons without any sheet music?
What is the `some` keyword in SwiftUI
PhD - Well known professor or well known school?
Randoop execution error, unable to load class due to exception
Access restriction on class due to restriction on required library rt.jar?Build project into a JAR automatically in EclipseHow to create a project from existing source in Eclipse and then find it?Eclipse how to link a jar containing javadocs/source with its binary?How do I put all required JAR files in a library folder inside the final JAR file with Maven?How to get the path of running java programHow to solve java.lang.NoClassDefFoundError?What does “Could not find or load main class” mean?Java program executes in eclipse but not in terminalRandoop junit generator pupulates null value for parameter values
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
The exact error I'm getting is :
Error: Unable to load class "MainClass" due to exception:
java.lang.NoClassDefFoundError: MainClass (wrong name:
thiagodnf/sootparser/example/grocery/MainClass
Included is the Zip of the class files, which I have located in a file path of:
C:EclipseWorkspacesRefactorsootparser-mastersootparser-example-grocerytargetclassesthiagodnfsootparserexamplegrocery
The class files can be found at this link:
There are a bunch of them in their own folders, so if there is a better way to share than a Gdrive link let me know. The folder on the link is called "grocery" it should be placed as the folder at the end of the file path ( it's not /grocery/grocery)
The command I am attempting to run is: C:Eclipserandoop> java -Xmx3000m -classpath C:EclipseWorkspacesRefactorsoot parser-mastersootparser-example-grocerytargetclassesthiagodnfsootparserexa mplegrocery;C:/Eclipse/randoop/randoop-all-4.1.1.jar randoop.main.Main gentests --testclass=MainClass
The source code is stored at this path:
C:EclipseWorkspacesRefactorsootparser-mastersootparser-example-grocerysrcmainjavathiagodnfsootparserexamplegrocery
The link to the source .java files are:
I renamed the folder so it wasn't as confusing for the upload, however it's original name is "grocery" and like the above path is not nested inside (/grocery/grocery)
My java version is:
> > java Runtime Environment (build 1.8.0_201-b09)
> > Java HotSpot(TM) 64-Bit
> > Server VM (build 25.201-b09, mixed mode)version "1.8.0_201" Java(TM) SE
So far I have tried different locations and paths to target "MainClass" I have moved it out as far as the the root, and also placed it in the same directory as the randoop jar file. Randoop seems to run against some other class files on my machine, so my concern is either the "MainClass" is not formatted in a way randoop can read it, or i'm missing something with my command, or location path.
The short term I would like it to run against MainClass, in the long run i'll need to do a class file list, and run it against all the classes in the different modules.
Thanks for anything you can do to help, or point me in the correct direction. If I can provide any more information or clarification please let me know.
Thank you!!
java randoop
|
show 1 more comment
The exact error I'm getting is :
Error: Unable to load class "MainClass" due to exception:
java.lang.NoClassDefFoundError: MainClass (wrong name:
thiagodnf/sootparser/example/grocery/MainClass
Included is the Zip of the class files, which I have located in a file path of:
C:EclipseWorkspacesRefactorsootparser-mastersootparser-example-grocerytargetclassesthiagodnfsootparserexamplegrocery
The class files can be found at this link:
There are a bunch of them in their own folders, so if there is a better way to share than a Gdrive link let me know. The folder on the link is called "grocery" it should be placed as the folder at the end of the file path ( it's not /grocery/grocery)
The command I am attempting to run is: C:Eclipserandoop> java -Xmx3000m -classpath C:EclipseWorkspacesRefactorsoot parser-mastersootparser-example-grocerytargetclassesthiagodnfsootparserexa mplegrocery;C:/Eclipse/randoop/randoop-all-4.1.1.jar randoop.main.Main gentests --testclass=MainClass
The source code is stored at this path:
C:EclipseWorkspacesRefactorsootparser-mastersootparser-example-grocerysrcmainjavathiagodnfsootparserexamplegrocery
The link to the source .java files are:
I renamed the folder so it wasn't as confusing for the upload, however it's original name is "grocery" and like the above path is not nested inside (/grocery/grocery)
My java version is:
> > java Runtime Environment (build 1.8.0_201-b09)
> > Java HotSpot(TM) 64-Bit
> > Server VM (build 25.201-b09, mixed mode)version "1.8.0_201" Java(TM) SE
So far I have tried different locations and paths to target "MainClass" I have moved it out as far as the the root, and also placed it in the same directory as the randoop jar file. Randoop seems to run against some other class files on my machine, so my concern is either the "MainClass" is not formatted in a way randoop can read it, or i'm missing something with my command, or location path.
The short term I would like it to run against MainClass, in the long run i'll need to do a class file list, and run it against all the classes in the different modules.
Thanks for anything you can do to help, or point me in the correct direction. If I can provide any more information or clarification please let me know.
Thank you!!
java randoop
If MainClass is in a package, should the testclass=MainClass option include the package?
– NormR
Mar 24 at 16:26
MainClass sits at the base location in "grocery", the other classes that it calls are located in sub directories from that location. Or did i miss-understand your question?
– ff210327
Mar 24 at 16:35
Does the MainClass.java file have a package statement at the top?
– NormR
Mar 24 at 20:14
yes it doespackage thiagodnf.sootparser.example.grocery;
What could I do to handle that if it's what's jamming randoop call?
– ff210327
Mar 24 at 22:17
Add the full package name to the class name to get the correct class name: thiagodnf.sootparser.example.grocery.MainClass
– NormR
Mar 25 at 2:15
|
show 1 more comment
The exact error I'm getting is :
Error: Unable to load class "MainClass" due to exception:
java.lang.NoClassDefFoundError: MainClass (wrong name:
thiagodnf/sootparser/example/grocery/MainClass
Included is the Zip of the class files, which I have located in a file path of:
C:EclipseWorkspacesRefactorsootparser-mastersootparser-example-grocerytargetclassesthiagodnfsootparserexamplegrocery
The class files can be found at this link:
There are a bunch of them in their own folders, so if there is a better way to share than a Gdrive link let me know. The folder on the link is called "grocery" it should be placed as the folder at the end of the file path ( it's not /grocery/grocery)
The command I am attempting to run is: C:Eclipserandoop> java -Xmx3000m -classpath C:EclipseWorkspacesRefactorsoot parser-mastersootparser-example-grocerytargetclassesthiagodnfsootparserexa mplegrocery;C:/Eclipse/randoop/randoop-all-4.1.1.jar randoop.main.Main gentests --testclass=MainClass
The source code is stored at this path:
C:EclipseWorkspacesRefactorsootparser-mastersootparser-example-grocerysrcmainjavathiagodnfsootparserexamplegrocery
The link to the source .java files are:
I renamed the folder so it wasn't as confusing for the upload, however it's original name is "grocery" and like the above path is not nested inside (/grocery/grocery)
My java version is:
> > java Runtime Environment (build 1.8.0_201-b09)
> > Java HotSpot(TM) 64-Bit
> > Server VM (build 25.201-b09, mixed mode)version "1.8.0_201" Java(TM) SE
So far I have tried different locations and paths to target "MainClass" I have moved it out as far as the the root, and also placed it in the same directory as the randoop jar file. Randoop seems to run against some other class files on my machine, so my concern is either the "MainClass" is not formatted in a way randoop can read it, or i'm missing something with my command, or location path.
The short term I would like it to run against MainClass, in the long run i'll need to do a class file list, and run it against all the classes in the different modules.
Thanks for anything you can do to help, or point me in the correct direction. If I can provide any more information or clarification please let me know.
Thank you!!
java randoop
The exact error I'm getting is :
Error: Unable to load class "MainClass" due to exception:
java.lang.NoClassDefFoundError: MainClass (wrong name:
thiagodnf/sootparser/example/grocery/MainClass
Included is the Zip of the class files, which I have located in a file path of:
C:EclipseWorkspacesRefactorsootparser-mastersootparser-example-grocerytargetclassesthiagodnfsootparserexamplegrocery
The class files can be found at this link:
There are a bunch of them in their own folders, so if there is a better way to share than a Gdrive link let me know. The folder on the link is called "grocery" it should be placed as the folder at the end of the file path ( it's not /grocery/grocery)
The command I am attempting to run is: C:Eclipserandoop> java -Xmx3000m -classpath C:EclipseWorkspacesRefactorsoot parser-mastersootparser-example-grocerytargetclassesthiagodnfsootparserexa mplegrocery;C:/Eclipse/randoop/randoop-all-4.1.1.jar randoop.main.Main gentests --testclass=MainClass
The source code is stored at this path:
C:EclipseWorkspacesRefactorsootparser-mastersootparser-example-grocerysrcmainjavathiagodnfsootparserexamplegrocery
The link to the source .java files are:
I renamed the folder so it wasn't as confusing for the upload, however it's original name is "grocery" and like the above path is not nested inside (/grocery/grocery)
My java version is:
> > java Runtime Environment (build 1.8.0_201-b09)
> > Java HotSpot(TM) 64-Bit
> > Server VM (build 25.201-b09, mixed mode)version "1.8.0_201" Java(TM) SE
So far I have tried different locations and paths to target "MainClass" I have moved it out as far as the the root, and also placed it in the same directory as the randoop jar file. Randoop seems to run against some other class files on my machine, so my concern is either the "MainClass" is not formatted in a way randoop can read it, or i'm missing something with my command, or location path.
The short term I would like it to run against MainClass, in the long run i'll need to do a class file list, and run it against all the classes in the different modules.
Thanks for anything you can do to help, or point me in the correct direction. If I can provide any more information or clarification please let me know.
Thank you!!
java randoop
java randoop
edited Apr 8 at 1:43
ff210327
asked Mar 24 at 16:21
ff210327ff210327
54
54
If MainClass is in a package, should the testclass=MainClass option include the package?
– NormR
Mar 24 at 16:26
MainClass sits at the base location in "grocery", the other classes that it calls are located in sub directories from that location. Or did i miss-understand your question?
– ff210327
Mar 24 at 16:35
Does the MainClass.java file have a package statement at the top?
– NormR
Mar 24 at 20:14
yes it doespackage thiagodnf.sootparser.example.grocery;
What could I do to handle that if it's what's jamming randoop call?
– ff210327
Mar 24 at 22:17
Add the full package name to the class name to get the correct class name: thiagodnf.sootparser.example.grocery.MainClass
– NormR
Mar 25 at 2:15
|
show 1 more comment
If MainClass is in a package, should the testclass=MainClass option include the package?
– NormR
Mar 24 at 16:26
MainClass sits at the base location in "grocery", the other classes that it calls are located in sub directories from that location. Or did i miss-understand your question?
– ff210327
Mar 24 at 16:35
Does the MainClass.java file have a package statement at the top?
– NormR
Mar 24 at 20:14
yes it doespackage thiagodnf.sootparser.example.grocery;
What could I do to handle that if it's what's jamming randoop call?
– ff210327
Mar 24 at 22:17
Add the full package name to the class name to get the correct class name: thiagodnf.sootparser.example.grocery.MainClass
– NormR
Mar 25 at 2:15
If MainClass is in a package, should the testclass=MainClass option include the package?
– NormR
Mar 24 at 16:26
If MainClass is in a package, should the testclass=MainClass option include the package?
– NormR
Mar 24 at 16:26
MainClass sits at the base location in "grocery", the other classes that it calls are located in sub directories from that location. Or did i miss-understand your question?
– ff210327
Mar 24 at 16:35
MainClass sits at the base location in "grocery", the other classes that it calls are located in sub directories from that location. Or did i miss-understand your question?
– ff210327
Mar 24 at 16:35
Does the MainClass.java file have a package statement at the top?
– NormR
Mar 24 at 20:14
Does the MainClass.java file have a package statement at the top?
– NormR
Mar 24 at 20:14
yes it does
package thiagodnf.sootparser.example.grocery;
What could I do to handle that if it's what's jamming randoop call?– ff210327
Mar 24 at 22:17
yes it does
package thiagodnf.sootparser.example.grocery;
What could I do to handle that if it's what's jamming randoop call?– ff210327
Mar 24 at 22:17
Add the full package name to the class name to get the correct class name: thiagodnf.sootparser.example.grocery.MainClass
– NormR
Mar 25 at 2:15
Add the full package name to the class name to get the correct class name: thiagodnf.sootparser.example.grocery.MainClass
– NormR
Mar 25 at 2:15
|
show 1 more comment
1 Answer
1
active
oldest
votes
Please see:
https://dzone.com/articles/java-classnotfoundexception-vs-noclassdeffounderro
This gives a thorough explanation of what the two exception/error states ClassNotFoundException and NoClassDefFoundError mean and the differences between the states.
Hopefully this will help resolve your issue.
In short, it looks like there is some versioning issue, whereby some class or method in a class that is being used in your code (or code used by your code) is not available to the runtime.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55325898%2frandoop-execution-error-unable-to-load-class-due-to-exception%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Please see:
https://dzone.com/articles/java-classnotfoundexception-vs-noclassdeffounderro
This gives a thorough explanation of what the two exception/error states ClassNotFoundException and NoClassDefFoundError mean and the differences between the states.
Hopefully this will help resolve your issue.
In short, it looks like there is some versioning issue, whereby some class or method in a class that is being used in your code (or code used by your code) is not available to the runtime.
add a comment |
Please see:
https://dzone.com/articles/java-classnotfoundexception-vs-noclassdeffounderro
This gives a thorough explanation of what the two exception/error states ClassNotFoundException and NoClassDefFoundError mean and the differences between the states.
Hopefully this will help resolve your issue.
In short, it looks like there is some versioning issue, whereby some class or method in a class that is being used in your code (or code used by your code) is not available to the runtime.
add a comment |
Please see:
https://dzone.com/articles/java-classnotfoundexception-vs-noclassdeffounderro
This gives a thorough explanation of what the two exception/error states ClassNotFoundException and NoClassDefFoundError mean and the differences between the states.
Hopefully this will help resolve your issue.
In short, it looks like there is some versioning issue, whereby some class or method in a class that is being used in your code (or code used by your code) is not available to the runtime.
Please see:
https://dzone.com/articles/java-classnotfoundexception-vs-noclassdeffounderro
This gives a thorough explanation of what the two exception/error states ClassNotFoundException and NoClassDefFoundError mean and the differences between the states.
Hopefully this will help resolve your issue.
In short, it looks like there is some versioning issue, whereby some class or method in a class that is being used in your code (or code used by your code) is not available to the runtime.
answered Mar 24 at 16:44
Bill NaylorBill Naylor
7117
7117
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55325898%2frandoop-execution-error-unable-to-load-class-due-to-exception%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
If MainClass is in a package, should the testclass=MainClass option include the package?
– NormR
Mar 24 at 16:26
MainClass sits at the base location in "grocery", the other classes that it calls are located in sub directories from that location. Or did i miss-understand your question?
– ff210327
Mar 24 at 16:35
Does the MainClass.java file have a package statement at the top?
– NormR
Mar 24 at 20:14
yes it does
package thiagodnf.sootparser.example.grocery;
What could I do to handle that if it's what's jamming randoop call?– ff210327
Mar 24 at 22:17
Add the full package name to the class name to get the correct class name: thiagodnf.sootparser.example.grocery.MainClass
– NormR
Mar 25 at 2:15