Skip to content
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

javac problem #35

Closed
jpaulm opened this issue Apr 28, 2020 · 12 comments
Closed

javac problem #35

jpaulm opened this issue Apr 28, 2020 · 12 comments
Assignees

Comments

@jpaulm
Copy link
Owner

jpaulm commented Apr 28, 2020

Hi Alex,

Of the set you raised, the only real mystery is the javac one... I don't understand the error message!

The second line of errorMsg1 seems to suggest that it's looking for javac within refactoring/bin ! But the -d option indicates the target directory! It also says "no such directory", but I do a Java mkdirs just before that message... maybe it doesn't work in *nix...?

Can you try a few naked compiles on your system to see if we can get some more info?

I have also had problems with DOS commands under Java in the past, so we could try a different format - if you don't mind doing some experimenting...?

Thanks in advance,

Paul

@jpaulm jpaulm assigned jpaulm and unassigned jpaulm Apr 28, 2020
@adkelley
Copy link
Collaborator

adkelley commented Apr 28, 2020

(Attaching the errMsg1 image for reference). I believe the tell is in the first line of the error message - ../refactoring/src//Step5.java, which is an invalid path to my source file because of the double slash. Note that the /bin directly (i.e., refactoring/bin) is being created during the compile process, so your mkdir is working correctly, but no .class file is created.
errorMsg1

@jpaulm
Copy link
Owner Author

jpaulm commented Apr 28, 2020 via email

@jpaulm
Copy link
Owner Author

jpaulm commented Apr 29, 2020

Alex, hold off a bit! I have run Compile on my system with no Java package ID, and it gives strange results, so I need to trouble-shoot that! Apologies!

@jpaulm
Copy link
Owner Author

jpaulm commented Apr 29, 2020

I think it's fixed! Alex, please give it a try - you will need to download v2.20.3 jar file again...

Apologies again!

@adkelley
Copy link
Collaborator

Downloaded and tried again this morning. See attachment. The double slash is gone in the file path, and the file paths seem to be correct. To be sure it's not me, I ran the following command and it produces Step5.class within the src directory as expected:

/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/bin/javac -cp ".:javafbp-4.1.2.jar" ./refactoring/src/Step5.java.

Let me know how I help further.

Screenshot 2020-04-30 07 04 30

@jpaulm
Copy link
Owner Author

jpaulm commented Apr 30, 2020 via email

@adkelley
Copy link
Collaborator

adkelley commented Apr 30, 2020

I'm afraid it's gotten worse. When attempting File>Compile or File>Run, I immediately get the following stack trace:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: File Chooser called using file not directory at com.jpaulmorrison.graphics.MyFileChooser.<init>(MyFileChooser.java:139) at com.jpaulmorrison.graphics.DrawFBP.compileCode(DrawFBP.java:2851) at com.jpaulmorrison.graphics.DrawFBP.actionPerformed(DrawFBP.java:1334) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.AbstractButton.doClick(AbstractButton.java:376) at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:125) at java.awt.MenuItem.processActionEvent(MenuItem.java:669) at java.awt.MenuItem.processEvent(MenuItem.java:628) at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:351) at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:339) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:761) 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:76) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.awt.EventQueue$4.run(EventQueue.java:729) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) 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)

@jpaulm
Copy link
Owner Author

jpaulm commented Apr 30, 2020 via email

@bobcorrick
Copy link

bobcorrick commented May 1, 2020 via email

@jpaulm
Copy link
Owner Author

jpaulm commented May 1, 2020 via email

@jpaulm
Copy link
Owner Author

jpaulm commented May 2, 2020

Hi Alex,

Not sure if you have downloaded DrawFBP v2.20.4, but, if you did yesterday, you may have an odd value in the DrawFBPProperties.xml file... I believe I have fixed it, so perhaps you could download it again, and give it a try... OTOH, if you are more comfortable staying with v2.20.3, that would be fine too!

Cheers!

@jpaulm
Copy link
Owner Author

jpaulm commented May 20, 2020

I have running cases on DrawFBP for a couple of weeks now, with no package specified in the Java source - and no problems now! Haven't heard back from Alex about his last javac problem, so I am going to assume that it was due to need to use colons. I will close this - Alex, if this is not correct, please reopen.

@jpaulm jpaulm closed this as completed May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants