java.util.Scanner not working on NetBeans 12.3 - java.util.scanner

I just downloaded Netbeans 12.3 to follow along with a tutorial on Java. However, the main class won't run.
There isn't any error in the output. It just shows "scanning for projects..." The status of the blue Run bar below the output window does not progress.
Note that the code works fine in Eclipse.
Any help is appreciated.
Thank you,

This post resolved my issue. It seems to be a bug peculiar to Maven.
Thank you,

Related

eclipse has bugs with showing code complementation and the cursor

Heys guys,
I just installed eclipse with e(fx)clipse and got some problems with the exspecially the layout. First of all the cursor does not being visually updated when doing horizontally movements(vertically works just fine). But this is only visually, when I edit the code it is on the correct position.
Aswell I have to click on the error warning at the line numbers to get the code complementation window longer then about 0.1 seconds. But even the it only shows up in the left top corner.
At last I have to close eclipse in the console or it will just freeze.
OS: Arch Linux always updated,
Eclipse: Version 4.5.1, java version,
Java: java-8-openjdk
Installed plugins: e(fx)clipse.
Hope you guys can help me,
Armin
So guys,
I figured out the solution for myself. The problem is GTK. With disabling it all the problem were solved. To do this start eclipse with the command line:
SWT_GTK3=0 eclipse
Sadly I have not yet found out how to do this permanently, but I will edit this answer as soon as I find out.
Armin

Python code terminated in Pycharm with exit code 1073741819

Python version: 3.4
Hi, I was running a small Python code in Pycharm, but it was terminated with the exit code 1073741819.
I've tried the same code in the Python command line and Anaconda, and both worked. Any idea why Pycharm has the problem, and how can I get it work in Pycharm? Thanks a lot.
Its too late to answer now, but maybe it helps someone else. My code also worked right with command line but not inside pycharm, it usually happens when we switch between different projects on PyCharm.
I fixed it by:
1- Restarting the Pycharm and reloading the project into it.
2- Clearing the heap memory by clicking at this in status bar:
and now it works pretty fine.
P.S: If this indicator doesnt appear then visibility of this section in the Status bar is defined by the Show memory indicator check box in the Appearance page of the Settings/Preferences dialog. It is not shown by default.

Can't access PyQt functions in PyCharm

I've recently installed Pycharm and PyQt to start application development, but I can't seem to access the PyQt functions in my projects. The same code works if I open an example of PyQt, but if I paste it in my project, I get these squiggly underlines and an error upon compile.
The issue is with the pycharm skeleton file generator, encounters issues with some pyqt files, there is no pattern as to why this happens. I have had similar issue with pyqt 5.3 and the pycharm 3.4.1. I and several others spent hours on the issue, browsing the web for clues and trying everything suggested to no avail.
We eventually found a post on StackOverflow that indicated a solution. In our case applying it was quite simple: we did not observe this problem with pyqt 5.2 therefore we copied the skeleton files from that version into the 5.3 skeletons folder. The details of how to do this are available in a comment that I posted on the pycharm bug tracking site: PyCharm auto completion doesn't work for PyQt 5.3. The issue is discussed in other ticket I just found, which might provide an actual fix instead of just a temporary patch: Unresolved reference in PyQt for QtGui module.
Late , but after none of above methods not work I closed pycharm and restarted pyCharm by restarter.exe in this path:C:\Users\<user-name>\.PyCharm2016.2\system\restart , then reopened pycharm. In my case it just worked :)

eclipse xml error

i am programming in eclipse for the first time and when i create a blackberry project i am getting this error in BlackBerry_App_Descriptor.xml as
Description Resource Path Location Type
InvalidRegex: Pattern value '([a-zA-Z_]{1,63}[\s-a-zA-Z_0-9.]{0,63}[;]?)*' is not a valid regular expression. The reported error was: ''-' is an invalid character range. Write '-'.' at column '19'. BlackBerry_App_Descriptor.xml /sample Unknown XML Problem
please help me out
thanks in advance.
I have had the same problem earlier with my first project on BlackBerry using the Eclipse provided on the site.
Though I took a lot of time to get a workaround for this, the solution is surprisingly simple.
Uninstall the JDK 7.x from your Windows system, adjust your path variables to point to another JDK version, preferably 6. There could be other dependencies in your Eclipse environment which need to be set independently to point to the new JDK (try Windows -> Preferences -> Java -> Installed JREs in your Eclipse and voila!)
see? let us know if you still face the problem..
I'm having the same problem as you are. There is a post regarding this issue at http://supportforums.blackberry.com/t5/Java-Development/InvalidRegex-Pattern-value-a-zA-Z-1-63-a-zA-Z-0-9-0-63-is-not-a/td-p/944343
I haven't been able to solve the problem yet, and I am clueless as to what may be causing it. The answers at the blackberry support forums didn't work for me at all. But do try them out. Best of luck.
The deprecated version of the blackberry development IDE for eclipse (version 1.1 of the pluggin) works fine, but is not available for download anymore.

ZX Spin emulator, built-in assembly errors

I'm having problems understanding how to get an assembly file to run
inside the ZX Spin emulator using the built-in assembler. I'm able to assemble my program but it seems to crash each time I attempt to run the assembled object code.
I cannot find any documentation on how this is meant to be set to run.
The message I get with version is v0.7:
Access violation at address 0060470C in module 'ZXSpin.exe'. Write of address 05603622"
Any help on getting this working with the most simple of assembly files would be great.
I had that error too with both 0.7 and 0.66 version, but I've found a solution.
Get to Tools/Options/System and change "When no longer active application" to "Keep running with sound"
I'm using version 0.666. Try to set a conditional breakpoint.
I found that version 0.7 had a bug in the assembler as that part was no longer being maintained and subsequently had been broken between releases.
I tried the previous version and it worked correctly (so I made a wonderful dot). Thanks to anyone who helped out with this. Can't recall the forum where I was provided with that info, but thanks :)

Resources