Debugging in Linux Console

Hi,
I'm pretty new in Linux and JAVA, so I hope, I'm in the right part of the forum for my question.
When I write java code in an IDE like eclipse and press the debug button, I get a detailed error message about what is going wrong. But when I try debug the same program on a linux console (Ubuntu with JRE and JDK installed (1.6) I just get one line with:
Exception in thread "main" java.lang.NoClassDefFoundError: SqlConnect/class
Is there any possibiltiy to enable a more detailed error traceback on the console?
Thanks a lot.

I mean, what packages should I install?
Is it possible to use only "apt-get install" or I should also use "dpkg"?
Is it possible to avoid using any guid interfaces because it is headless pc?
I'm asking because I successfully use openvpn connection in console and I hope that cisco vpn is also possible here.
Thanks for your attention and best regards!

Similar Messages

  • How to display the message for debugging on jboss console

    Hi every body,
    I have found the classcastexception. For resolving this problem, I want to display messages for debugging on jboss console.
    Can any body help me to solve this problem.
    Thanks
    Best regards,

    I have found the classcastexception.So fix it, what do you need debugging statements for?
    I think you mean "I need to find a ClassCastException in my server code, but I haven't got a stack-trace, so I can't figure out where to put a printStackTrace() statement... so I need to put some debug statements in the code, but I'm not even sure where they will be displayed."
    Am I warm?
    Well, I don't know about jBoss, but weblogic server sends its standard output stream back to the standard output stream of the process which started it... so you redirect stdout to a file when you start your server, and then you can tail it or whatever... and then of course you just do System.out.println statements.
    Hope that helps. Keith.

  • Unable to run admsi.pl from Linux console after 7305220 PATCH FOR R12.AD.A.

    Looks like they do not want you running admsi.pl directly from linux console sessions as of AD.A.6:
    my $DISPLAY= $ENV{'DISPLAY'};
    if(($DISPLAY eq "") || ($DISPLAY eq ":0.0")){
    print "Please set the DISPLAY variable and re-run this script\n";
    exit 1;
    I had to comment out the exit 1; line as xterm would only display xclock with DISPLAY=:0.0.

    Looks like they do not want you running admsi.pl directly from linux console sessions as of AD.A.6:
    my $DISPLAY= $ENV{'DISPLAY'};
    if(($DISPLAY eq "") || ($DISPLAY eq ":0.0")){
    print "Please set the DISPLAY variable and re-run this script\n";
    exit 1;
    I had to comment out the exit 1; line as xterm would only display xclock with DISPLAY=:0.0.

  • How to create linux console/terminal using Java

    Please help, give some ideas or something...I would like to develop my own linux console/terminal to make connection to linux server.
    Please help me.
    Thanks

    That doesn't make any sense.
    Are you just trying to write output to the terminal, as you mentioned in this thread?
    http://forum.java.sun.com/thread.jspa?threadID=5287785

  • Term Boy: A Game Boy emulator for the Linux console

    Term Boy is yet another Nintendo Game Boy emulator, with one difference:  It uses ANSI escape codes to draw each 'pixel' in the terminal.  It's a fork of gomeboycolor, a Game Boy emulator written in Go.  Currently sound is not supported and the controls are not customizable, but I hope to fix those problems in future releases.
    Only ROMs for the original Game Boy will display properly, since the Linux console doesn't support enough colors for the Game Boy Color.  Your default console font must also be 8x16 pixels and support the Unicode left half block character(▌) for the screen to render correctly.
    This is my first package, so any feedback is appreciated!
    Available in the AUR:
    https://aur.archlinux.org/packages/termboy/
    See the readme on GitHub for the controls:
    https://github.com/dobyrch/termboy-go
    Last edited by dobyrch (2014-01-11 04:13:39)

    I was thinking about doing the same thing with a computer back at home that's just sitting in the corner. My parents are currently throwing it out, which is quite a bummer. Still gonna do it though, but now I can think about using something much, much smaller to access the files on here. For controllers I was thinking about hacking one of my current SNES controllers into a usb connection.
    The emulators would be snes9x, gameboyadvance, and maybe MAME. Not sure about GB/C or NES though.
    For game selection I was thinking about writing a program or something.

  • Unicode Fonts In Bash In The Linux Console

    Hello Everyone,
      Is it possible to have a Bash prompt similar to the one below using the default Linux Console? Or do I need to install Fbterm or KMSCON?
    https://wiki.archlinux.org/index.php/Co … Forum_.231
    This is on a newly installed system. My vconsole.conf looks like this:
    FONT=ter-222b
    I tried using the Lat2-Terminus16 and LatArCyrHeb-08 fonts but they don't seem to have the characters that I want, specificially the ┌─ and └──╼ characters. I also installed the bdf-unifont package but it seems to be only for X as I could not load it using setfont. I am using Bumblebee with the official NVIDIA drivers but I don't think that would affect the fonts in the console.
    thriftyb

    jasonwryan wrote:
    Works fine here:
    FONT=ter-116n
    When I try echo -e "\xE2\x98\xA0" at the console or in an Xterm I get a sold rectangle instead of ☠, although I can copy and paste from the Xterm to this form and I get the ☠. Maybe Terminus does not support the glyphs for the ☠ character?
    thriftyb
    Last edited by thriftyb (2014-12-20 01:46:14)

  • Remotely view output on a separate Linux console

    I am wondering if anybody knows of a way to view output on one Linux console from another Linux console.  Here is an example.  I have an Arch Linux desktop machine and a server machine.  I usually use my server remotely through ssh to compile software.  Some software takes forever to compile, and I will go somewhere to work on something.  I then remotely login from another machine, but I want to see the output from the compiling that is being output to my desktop at home.  Does anybody know of a way to grab that output so I can view it from a new console session?
    -Chris

    GNU screen is fantastic for stuff like this. There are plenty of forum threads out there that talk about setting it up and configuring it (this is a good place to start).[/url]

  • Dumb newbie question -- shell vrs linux console

    This is probably a dumb newbie question, but what is the difference between the shell screen and the linux console screen? I used another system before Arch and I believe there was only the shell screen! Does it matter which one is used?  Thanks -- Larry

    The console is the 2D text rendering thing. The shell is Bash, just a program that handles your input and has the console as output.
    If on the other hand you mean the console at startup, and you call that the console while you call xterm, etc. shells then the answer is different. It's just a matter of configuration if you automatically start X or not. A lot people use gdm or kdm to get a graphical login screen after bootup, others just type "startx" in the console when they want to start X.
    You can switch to the console with Ctrl+Alt+Fn where n is a number between 1 and 6. You can switch between consoles with Alt+Fn, X is on the last console, so to go back to X do Alt+F7.

  • Configure cisco vpn connection in linux console

    Hi all,
    how do I configure cisco vpn_client connection in ubuntu/debian/raspbian linux console using .pcf file?
    Thanks ahead.

    I mean, what packages should I install?
    Is it possible to use only "apt-get install" or I should also use "dpkg"?
    Is it possible to avoid using any guid interfaces because it is headless pc?
    I'm asking because I successfully use openvpn connection in console and I hope that cisco vpn is also possible here.
    Thanks for your attention and best regards!

  • Tmux/DVTM on UTF-8 Linux Console Output Incorrect Line Drawing Glyphs

    I have the Linux Console set to UTF-8 with (usually) the Terminus font.  As a side note, I use SystemD for init, which could be a contributing factor to my problem.
    When I run Tmux on the Linux Console, and split the screen, rather than nice crisp lines, I get weird glyphs.  Setting LANG to en_US.ISO-8859-1 seems to fix this problem, but I don't understand why...  DTVM exhibits the same behavior.
    Any ideas of what is going on?

    So, did you find a solution for this one? For some reason I just ran into the same problem without knowing excactly why.. it has been working just fine for years. How can I change it so that I'm using e.g only en_US.UTF-8 like bernarcher wrote? Any help would be appreciated.
    $ locale
    LANG=en_US.UTF-8
    LC_CTYPE=
    LC_NUMERIC=
    LC_TIME=
    LC_COLLATE=
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES=
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=
    $locale -a
    C
    en_US
    en_US.iso88591
    en_US.utf8
    POSIX

  • How to access Linux console on the Linksys Linux enabled router?

    I have Linksys WRT160NL router. it says it's runs LInux on a box.
    So how can I access Linux console on it? What windows program I need?

    I have Linksys WRT160NL router. it says it's runs LInux on a box.
    So how can I access Linux console on it? What windows program I need?

  • Customising the linux console

    Yesterday i realised something. Most of time i am only running apps inside a virtual terminal, even for web browsing, & that with the exception of firefox which i use mostly when visiting webpages that require from me to have cookies or even worst, nasty scripts, i dont use on a daily basis any other apps that requires an X server running to execute.
    That being said, i thought id try running my screen sessions outside of the X server in the linux console. After all, and hopefully some of you will agree with me, it sucks less.
    But not all things were perfect...
    First anoyance was the font. In the 16 months ive been running arch, i had never bothered changing the default cause i really didnt have to. Luckily the font i use inside X , terminus , works great on the console as well, and with the help of tomkx, i set it to ter-p12n.
    Second, i realised that my color & screen setups were built to work great only in X. my lovely dark theme was black in the console. i wish there was a way to set the background to a certain color and define black as a variation. I havent yet found a way of doing that.
    Third, i knew all along about fbgrab a framebuffer screenshooter. I installed it but it doesnt work. it says it cant open /dev/fb0. does anyone know how to solve that? i am using the ARCH kernel.
    Why am i telling u all this. Searching google for resources on the topic turn out to be not as easy as i had expected. It returns gazillion of unrelated results conserning virtual terminals.
    I would appreciate it if someone answered the above questions or some tips & tricks about customising the console even further.

    lloeki wrote:no you don't need bootsplash or splashy. you need fbcondecor. as stated on spock's page (fbsplash & fbcondecor author) they have close to nothing in common.
    no, i dont think i need this either. i dont need eye candy and pictures as backrounds. also i am not willing to patch a kernel just for this.
    im gonna try rephrasing by giving an example:
    in my .Xdefaults i can set the terminal backround to #000000 (plain black) and set colour0 to a different colour, one that will differ from the backround. i have tried achieving that in console without success until this point. eg. if i set colour0 to #000000 and colour8 to #22222. the result of both is black (#000000).
    all my dotfiles, as well as app configuration files take advantage of the .Xdefaults settings described above. but in console the result is too dark.
    even though i doubt it, hope the above make the point i am trying to make more clear

  • Writing Linux Console Command in IDE!!

    hi,
    How do i write the code for the commmands,scripts usually written
    in linux console,eg to execute an application(./editor.sh)in netbean
    IDE interface?im new to java so i need help here.Are the any source code for me to refer?
    thanks

    in linux console,eg to execute an
    application(./editor.sh)in netbean
    IDE interface?im new to java so i need help here.Are
    the any source code for me to refer?Are you referring to the the shell scripting in unix and unix-like environemnts? Basically there's two major flavors of shells, the c shell and the korn shell, most linux environment have bash as the default shell. Here's a good link:
    http://www.tldp.org/LDP/abs/html/
    You might also try to get your hands on Unix Bookshelf from O'reilly, it's pretty basic in most places, but will get you along fine. :)

  • Embed linux console

    dear users,
    Is there any straight-forward way to embed the linux console (and any linux based application for that matter) in a JFrame or any Swing component? Runtime.exec() would be sufficient to achieve what i wanted regarding the console. but with other linux based applications this wont be the case. I'm not sure..would jdic help in any way?
    thanks in advance
    kota.
    Message was edited by:
    kotaonline

    http://72.5.124.55/javase/6/docs/api/java/io/Console.html

  • [SOLVED] Linux Console / Terminus Startup Unicode Issues

    Hello!
    So I'm using the Linux Console (the kernel one, not really sure if this thing is going to get a window manager) and I've set it up to use Terminus as the default font.
    /etc/vconsole.conf:
    FONT=Lat2-Terminus16
    With this, on bootup, the font does change (so I know it's not that kernel hook that I always forget to put in ), but Unicode characters don't display properly. This wouldn't be a huge deal, but it really messes with ncurses.
    The odd part: if I do a
    setfont Lat2-Terminus16
    Then the font doesn't seem to change a bit, but now Unicode works fine. I suspect it's something going on with the font map or the unicode mapping, but I can't figure out any way to actually print out, e.g., where my unicode mapping is coming from.
    I'm willing to post any log files you need. Also, not 100% sure newbie corner is the place for this, but none of the other ones seemed to be any more appropriate, and this is definitely making me feel like a newbie . Mods, if this seems grossly inappropriate, feel free to move it.
    EDIT: it was indeed not having KMS loaded early enough. Thanks, all!
    Last edited by arek_menner (2013-11-17 17:27:20)

    karol wrote:Post your /etc/vconsole.conf. You can set font map there.
    What's the output of 'localectl'?
    My vconsole.conf is up there. Sorry, I should have made it more clear that that's what it was. It is, exactly, the one line:
    FONT=Lat2-Terminus16
    I remember trying to put a FONT_MAP in there, and it didn't help (although I don't know which one the correct mapping would be). I don't specify a font map when I do the bare 'setfont' once the system has already booted. That sort of makes me think that Terminus has the font map in the file?
    localectl output:
    System Locale: LANG=en_US.UTF-8
    VC Keymap: n/a
    X11 Layout: n/a
    And locale's output is basically a whole bunch of "en_US.UTF-8"s.
    WonderWoofy wrote:I have read somewhere that if you use the systemd-vonsole-setup.service to do anything more than the defaults, it is wise to also have early KMS setup as well.  Apparently the change in font or language depends on the KMS being properly in place before it happens, and this is only guaranteed if you set up KMS in the initramfs.
    I remember having a problem with that last install, but it just made the new font not show up, rather than not having Unicode support. I definitely haven't done anything regarding that this time, though, so I'll give it a try and report back to you

Maybe you are looking for