running java program in IntelliJ terminal - intellij-15

Below is a screenshot of IntelliJ on my computer with a terminal up.
I thought I should be able to just type java random_uniformin the terminal to run the program but it complains withe the error message shown in the screenshot.
I have looked at similar questions to mine but still wasn't able to resolve the issue.

The terminal in IntelliJ is just your shell (if you're on unix) and cmd.exe-like command prompt (if you're on Windows). There's no magic.
So to run program in terminal you need to compile it as usually and run binary.
Here is an answer about how to compile Java program

Related

Lazarus Terminal Output Not Shown (Version 2.0.10)

So I recently installed Lazarus and created a simple Hello World Program. When I ran it, no terminal showed up with the output.
Here is my code:
program project1;
begin
writeln ('Hello, world.');
readln;
end.
I saw a question very similar to this. The answer said to click View > Debug Windows > Terminal Output. When I click View > Debug Windows, there is not option: Terminal Output. I'm on macOS Catalina. Is there some change to the way that you are supposed to this.
Here are the options for Debug Windows:
I also do see a message saying the compilation ran successfully (in green).

Endless loop of installs in cygwin to get mysql

I'm running windows 10. I am evaluating software that was written in cygwin / mysql / python.
I installed cygwin from the mirrors.cs.vt.edu site. According the setup program mysql is installed.
When I try to run mysql I get "-bash: mysql: command not found"
I found a note on stackoverflow that says "OH, just use apt-cyg", but when I do that it says
"-bash: apt-cyg: command not found"
Another note said "Oh, use lynx to install apt-cyg", but it can't find that either.
Dear god, can someone please explain what I have to install? Apparently, it's already in there someplace.
Also can't download and build package X, because it can't find gcc either.
The only that works are ls, pwd, find, python, a few other things.

octave opens GUI when I type "octave" in terminal

I have a problem:
installed octave and do not know why, every time I type octave in the terminal opens the GUI interface (gui --force-octave) Octave and not the terminal octave as is right. how can I fix this?
If you have Octave 4.0, the GUI is the default:
** A graphical user interface is now the default when running Octave interactively. The start-up option --no-gui will run the familiar command line interface...
https://www.gnu.org/software/octave/NEWS-4.0.html
You can add this alias octave='octave --no-gui' to your ~/.bashrc file and every time you type octave, it opens in your terminal.
Good luck

how to install tcl on solaris sparc

I have a solaris machine configuration: SunOS indevel07 5.10 Generic_147440-15 sun4v sparc sun4v. I am trying to install expect utility on this. expect utility requires tcl to be installed. I have tried to install that too, but i am getting errors. I have downloaded the tcl-8.5.12-sol10-sparc-local.gz and expect-5.45-sol10-sparc-local.gz from sunfreeware. I have unzipped them and tried to install them like pkgadd -d pkgname. I am getting errors like:
ERROR: attribute verification of </usr/local/man/man3/Tcl_Seek.3> failed
pathname does not exist
There are lots of errors like this. I tried to troubleshoot it by googling but could not find anything about it. I am stuck with my development because of this.
Try building Tcl/Tk and Expect from the source. Here is the instruction - How to Compile Tcl. Expect download - Obtaining Expect for UNIX. That worked for me on Solaris 10 and I did not hit any serious bumps.
For those who want to install tcl please refer this URL. it has got steps to do that. URL: http://www.wellho.net/mouth/1174_Installing-Tcl-and-Expect-on-Solaris-10-a-checklist.html

Qt windows libmysql.dll

I have installed MySQL 5.1.49 and the binary QT 4.6.2 for Visual Studio 2008. I configured Qt as follow:
C:\Qt>configure -static -no-webkit -plugin-sql-sqlite -plugin-sql-mysql -I C:\mysql\include -L C:\mysql\lib\optC:\Qt\src\plugins\sqldriver
Everything went fine, no errors. When I run nmake on my application everything runs fine, no errors as well. However when I execute my application under the debug folder I get a popup saying "Driver not loaded" (I have QT += sql under my project.pro)
If I goto C:\Qt\plugins\sqldrivers I dont see any libmysql, or any *mysql.dll only qsqlmysql.obj and qsqlmysqld.obj (there are files such as: qsqlite4.dll, qsqlpsql4.dll etc.)
I did try to build it manually by doing:
cd %QTDIR%\src\plugins\sqldrivers\mysql
C:\Qt\src\plugins\sqldrivers\mysql>qmake "INCLUDEPATH+=C:\mysql\include" "LIBS+=C:\mysql\lib\opt\libmysql.lib" mysql.pro
nmake
Everything compiles fine, no errors. However, I still don't find any libmysql.dll generated. Only file found is under C:\mysql\bin\libmySQL.dll
I have all the includes for MySQL under C:\mysql\include and the libraries under C:\mysql\lib\opt
Any ideas what could be the problem? Thanks
Using -static prevents you from using plugins at runtime. You will need to change
-plugin-sql-mysql
to
-qt-sql-mysql
and have it compiled in.
B1.
Have you tried using qt source instead of the binary one? I had a similar issue, however I was getting compile errors.