-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ERROR] Could not compile the generated mutants. Make sure that tools.jar is in your classpath. #25
Comments
I fixed the "config file not found" error. I had to remove the .txt extension. Still getting "[ERROR] Could not compile the generated mutants. Make sure that tools.jar is in your classpath." Also, there are no traditional_mutants being generated. I am receiving this error: |
Hello Danish,
Unfortunately, I have no resources for maintaining or supporting muJava.
All the best,
~Jeff
Jeff Offutt, PhD
Professor of Software Engineering
Director, MS Software Engineering
Associate Chair of Graduate Studies, CS Department
MS 4A5, George Mason University <https://www.gmu.edu/>
Fairfax, VA 22030-4444 USA
EMail ***@***.***> / Twitter <https://twitter.com/JeffOffutt>
/ LinkedIn <https://www.linkedin.com/in/jeff-offutt/> / Homepage
<https://cs.gmu.edu/~offutt/>
…On 4/21/2022 3:36 AM, Danish Nazir Arain wrote:
I have tried to run Mujava in macOS and Windows.
In Mac:
I am having trouble with the config file and Tools.jar file.
Mujava is running but can't create any mutants.
In Windows:
when I tried to run it on Windows the config file shows
C:\Mujava/classes "doesn't exist" in the error. Mujava_Home is set to
"C:\Mujava" and "/classes" is added but Mujava. Why is it adding a
forward slash in Windows setup and how do I change that.
Path to Tools.jar:
Screenshot 2022-04-21 at 12 13 41 PM
<https://secure-web.cisco.com/1zl3Ibi85ahfma019MxjmQSatMkcMKq4yu4iliHtFAL9fMWNsdRKwltqzNPtuoXp7vCE_NFyksvmqx7CszY9FlHA6fY0pIJ4_U5MdhyA6BYR-fDJH9V2B68J_YgU8p_D4SKx9CM0_W3KcAdpZljU4EwxUcEbTdR15xu9XU_CBF6qiCHZH9MjqGyOH4g7jZeWwxah5IVpTVH8aPvDUpXkNn0QF70pk5lzjerkZ6tIdFi1kt6KM4XRkhgveVS8TRi5VzhwQTPSN2Ynca33i545c4rHi-oIEDvKoRdgKuhNYVEUhK8C-T3b3rh1WguprOvSRHNlPH-yILo24CbjtKO1lH2jy49rtF6ac687BXcC5QCxJG1SLxh-gwGKEfOFb9CANsMY-ycWZ4-Zq8vVok9GnOHijpVMEsajg8msbgMDYZClsJBN5lKgymCpF7Ung2OKA_oTMUZsJjLhbPR2dfMTKJA/https%3A%2F%2Fuser-images.githubusercontent.com%2F30548701%2F164396272-5f9b91a6-29d5-48f6-95ce-3a669973834f.png>
.bash_profile:
Screenshot 2022-04-21 at 12 13 49 PM
<https://secure-web.cisco.com/14JCX6Wh-AoRKVTCjFpx0uVwxYx3-cUiS0vNYHaQSVXoClspcsqcEV5bS_g3PpepNq8_j3_34fx_1U2oTlSA3mlEPq8aiLbhf-UKpxbnUQ2jVP9uzyT5mLtKjFTYHQg3yZ_9tvUHTEUEj1x-NDu9NQJTyS6Mv4NINujh7IBDGJ4ZcqoVMwBu9KU0brja7Bb71QlqyWIiezwCyIlVOSCJnTRwhf5GzHlYp-BH0a-vze4lKI7eNOdJ6l7mo4yxJBqCCfYzXgaEKKhQQY3IA60fTQOsVWSjlp61LItNT2AB8LoV8iA9evoPEiT19BzJddDLwUqmCcl_9OI2aOvSjEd41gJcnQWinf05o8ovlRzL2x_WHH3nnwy1ski20U8URstWtcI7SqrbkRRgwp5n_uApSoewk2-aUjUD-_0lEKA7TTLnhlNK4lnCROjQrVM9tvM1nZZ68PJJsmAcZgZgI0jhnVA/https%3A%2F%2Fuser-images.githubusercontent.com%2F30548701%2F164396355-1f623225-8c13-4e8d-9f9a-c814c21a1c7c.png>
Mujava Home:
Screenshot 2022-04-21 at 12 17 12 PM
<https://secure-web.cisco.com/17qwcdxrIQe-u6XxEjaUEKi2QqhayUcZOl_zvug9JKbpKfrrliSAhhUvFtEZE4cZAXq-pgRWG45fD54xs5XHeBYdqVe_Zcrns6v-9oG5cStJbLtjrlO4feI9xY0Yqg4E756H8GzXtjMoTztVfDbtixGpeUipmk0PB_c04IO5cVX6gjYWJ1ZbK8xNtOv0lZTuU4bnQm5JSfPsTc7si8Tgbyf8TMANgfGa3sDc5gJh5zAX8O1NTc66QztCFNpdJSdRQhMGtU5rken65eFkWWu8DmQHwnY-29I50lvrlZQZrIBV1WOk7j0snUzyztzO5XhcA700_DMuuLSs4AeaFvg1dXpvQ1rdnGjVhLoCDummgul3Zm4iMLvl3xcYH6jKb27DH5PFQY1uEEYffzO75C7QjL7wXJnshrG56RtssMW_d2gFQ2R5S4PAGnhSDweaWqEgMYOMuLLM16QuncMssCQ-A0Q/https%3A%2F%2Fuser-images.githubusercontent.com%2F30548701%2F164397263-6b4b0cf3-6eed-4993-b83a-45fbb665c04e.png>
Mujava Config:
Screenshot 2022-04-21 at 12 21 05 PM
<https://secure-web.cisco.com/1IkADtde3lrl2gFxHxNBwLK2kiFTB2vfuYE65OCbfttP3uYT8OkzIyZ_GIXDEJd1EEBH8wa7x1l-aJQtM2KCrU4amsUOj-76l_ztGft6vfsP3pUyEnqiFTVcPYL7aCMOOY8KEP3utsxRERTxybPa3rx1tIAnNgRxd8lnBmlDRSk-gFloUuqK2P0IQFo1YPDn-WzDPWg4HKwBdQ_H2YqiqbF4gXD5xN-4fkjXgIqCUWMe5hbjH-YuplCBQ_DEw8_np4Sf66cOOvrll2vH9piRygZ0OhLpI5hu9RwGpjRo3Y3HlLbD1UFQrsK578fG8X8H-9KZDzfCtMX-SH0hJQAlhNWvwY9bfDivA560OHxOrTxagkit3INSnEfaOHH07_PgI3X6tAInvaXpNId7QeXr7piIDNcFGgm9Ekqf184kxW0tYF_dvxhtwalAGGWQ4Q5por604keTCEqVUa7ULTknEJQ/https%3A%2F%2Fuser-images.githubusercontent.com%2F30548701%2F164397809-1827a468-00ce-4a5f-94d1-391456a89fb2.png>
Java version:
|Danishs-MacBook-Pro:mujava Danish$ java -version openjdk version
"1.8.0_292" OpenJDK Runtime Environment (AdoptOpenJDK)(build
1.8.0_292-b10) OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build
25.292-b10, mixed mode)|
Error:
`
The main method starts
[ERROR] Can't find mujava.config file
java.io.FileNotFoundException: /Users/Danish/MuJava/mujava.config
(No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileReader.(FileReader.java:72)
at
mujava.MutationSystem.setJMutationStructure(MutationSystem.java:592)
at mujava.gui.GenMutantsMain.main(GenMutantsMain.java:67)
[ERROR] for class PartiallyTested => PartiallyTested (wrong name:
com/example/PartiallyTested)
Warning: the fonts "Times" and "Lucida Bright" are not available
for the Java logical font "Serif", which may have unexpected
appearance or behavior. Re-enable the "Times" font to remove this
warning.
Error in update() in TraditionalMutantsViewerPanel.java
Class HelloWorld.java has only the 'static void main()' method and
no mutants will be generated.
Error in update() in TraditionalMutantsViewerPanel.java
All files are handled
File /Users/Danish/MuJava/src/PartiallyTested.java
[ERROR] Could not compile the generated mutants. Make sure that
tools.jar is in your classpath.
You may also need to delete the mutants that were generated (but not
compiled) in the result/ directory of the muJava installation.
java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
at mujava.MutantsGenerator.compileOriginal(MutantsGenerator.java:528)
at mujava.MutantsGenerator.makeMutants(MutantsGenerator.java:107)
at mujava.gui.MutantsGenPanel.runB_mouseClicked(MutantsGenPanel.java:495)
at mujava.gui.MutantsGenPanel$4.mouseClicked(MutantsGenPanel.java:177)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
at java.awt.Component.processMouseEvent(Component.java:6542)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4544)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 36 more
`
—
Reply to this email directly, view it on GitHub
<https://secure-web.cisco.com/1xz7uGRfciUDKr22Rx10AACj8XobhtSBv9WQ60S_bybdu3OH668-X8BSixjJQkl2iEBjI20f3PmIXhU66fbKD1dXFz3_3SMCHYwyucsDnUJieTN28BgnWAMpuiNdYlaBPw1CyQ4KGslJ9oRWgevcWEZqsweKSnHK0KaTBlc1gRwYNSZeeB-YPXwU5W5nOgOR0GKCDDY_daeLl95bS5ZybdthD5YmaKIJheL7UGRmfY1K5QdLAbA3DzcixT01X6VF1QK2ECnok6O-ApkdvjMXKoWP8EB8NoF_Rtz5EvPr9Jx3WHASvdgUM4LF35zp0ZSzy1SwYi0_4zhtM0WVUFuWyE_ZD7_vzu4j7KlNQuOD88RkiI56U_ifWEuZ2-DOVYK0OwbqgWh-cTbOHvXZ5f2GRTLmvTQVAtdWCEqkYW9nzlUNu88xSW245lX6DVuxszmmi/https%3A%2F%2Fgithub.com%2Fjeffoffutt%2FmuJava%2Fissues%2F25>,
or unsubscribe
<https://secure-web.cisco.com/1PjW-CuCq72HFsbhqat8bD8y5rB6ZDiiAIiAh8sWaONDGgTJbjyGhSLejlI05D23yivnI6tBo-p7zAeKMac-_sP-SDL7RCHmX8Qf390RbWyIPX0Q_04muXTLOYQd83wo2wVu3WPKdRpX6pQ2hDSXTAU0h1PqQ8PwGUUJRRVO-_pFYGZCqsFxuPahwefL7POPLO_KXLDtmzWXJE5jCRIcIa_f50WiKMpwlEaW_umkLpg5IrLUA_TELcoFLi3HyJX4AzcNRCN!
Ez3hCZ5OwBT3CU3ctkN2nDzT_mhIHNr7gDaXtHWyW6mKNwFGmWUgsFHyJ2A20EJrZ-wT1hBfUlKK6WGs9DM89ndoqRyO0FftbVZrc8jIALZO2Fu2Ys8Iug-tgUu1t71EHnPh2RRKA5yaXunQvQipBuFoNhIRyjYvjv5TttYxMYiOzi9rBkCyUHhJdl/https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAC2PDWR3HDFUGFEOYUGWOITVGEAOJANCNFSM5T6KFXSA>.
You are receiving this because you are subscribed to this
thread.Message ID: ***@***.***>
|
I have tried to run Mujava in macOS and Windows.
In Mac:
I am having trouble with the config file and Tools.jar file.
Mujava is running but can't create any mutants.
In Windows:
when I tried to run it on Windows the config file shows C:\Mujava/classes "doesn't exist" in the error. Mujava_Home is set to "C:\Mujava" and "/classes" is added by Mujava. Why is it adding a forward slash in Windows setup and how do I change that.
Path to Tools.jar:
![Screenshot 2022-04-21 at 12 13 41 PM](https://user-images.githubusercontent.com/30548701/164396272-5f9b91a6-29d5-48f6-95ce-3a669973834f.png)
.bash_profile:
![Screenshot 2022-04-21 at 12 13 49 PM](https://user-images.githubusercontent.com/30548701/164396355-1f623225-8c13-4e8d-9f9a-c814c21a1c7c.png)
Mujava Home:
![Screenshot 2022-04-21 at 12 17 12 PM](https://user-images.githubusercontent.com/30548701/164397263-6b4b0cf3-6eed-4993-b83a-45fbb665c04e.png)
Mujava Config:
![Screenshot 2022-04-21 at 12 21 05 PM](https://user-images.githubusercontent.com/30548701/164397809-1827a468-00ce-4a5f-94d1-391456a89fb2.png)
Java version:
Danishs-MacBook-Pro:mujava Danish$ java -version openjdk version "1.8.0_292" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10) OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.292-b10, mixed mode)
Error:
`
The main method starts
[ERROR] Can't find mujava.config file
java.io.FileNotFoundException: /Users/Danish/MuJava/mujava.config (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileReader.(FileReader.java:72)
at mujava.MutationSystem.setJMutationStructure(MutationSystem.java:592)
at mujava.gui.GenMutantsMain.main(GenMutantsMain.java:67)
[ERROR] for class PartiallyTested => PartiallyTested (wrong name: com/example/PartiallyTested)
Warning: the fonts "Times" and "Lucida Bright" are not available for the Java logical font "Serif", which may have unexpected appearance or behavior. Re-enable the "Times" font to remove this warning.
Error in update() in TraditionalMutantsViewerPanel.java
Class HelloWorld.java has only the 'static void main()' method and no mutants will be generated.
Error in update() in TraditionalMutantsViewerPanel.java
All files are handled
File /Users/Danish/MuJava/src/PartiallyTested.java
[ERROR] Could not compile the generated mutants. Make sure that tools.jar is in your classpath.
You may also need to delete the mutants that were generated (but not compiled) in the result/ directory of the muJava installation.
java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
at mujava.MutantsGenerator.compileOriginal(MutantsGenerator.java:528)
at mujava.MutantsGenerator.makeMutants(MutantsGenerator.java:107)
at mujava.gui.MutantsGenPanel.runB_mouseClicked(MutantsGenPanel.java:495)
at mujava.gui.MutantsGenPanel$4.mouseClicked(MutantsGenPanel.java:177)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
at java.awt.Component.processMouseEvent(Component.java:6542)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4544)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 36 more
`
The text was updated successfully, but these errors were encountered: