Java Programming in Linux Plafform (Help Required)

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.

Postby fawad » Mon Mar 10, 2003 12:52 am

gh4z4nf4r wrote:fawad my java classes had just started thats why im puzzeled about the selection of tools. All i want to do is use the ones that will help me learn java and would also be suitable for my this new love i.e linux

gh4z4nf4r, Go with netbeans or forte (I prefer Netbeans). They work perfectly out of the box on both windows and GNU/Linux. I can safely say that Netbeans will last you at least 2 semesters. It's very good for RAD and integrates very nicely with standard java tools (ANT, Tomcat, Xerces etc.).
fawad
Site Admin
 
Posts: 918
Joined: Wed Aug 07, 2002 8:00 pm
ICQ: 17672437
Website: http://www.fawad.net
WLM: fawadhalim@hotmail.com
Yahoo Messenger: fawad2048
AOL: fawadhalim
Location: Addison, IL

Postby farhantoqeer » Mon Mar 10, 2003 9:14 am

i am gully agreed with fawad.
farhantoqeer
Major General
 
Posts: 917
Joined: Thu Jun 27, 2002 5:45 pm
Website: http://www.emergen.biz
Location: Karachi

Postby gh4z4nf4r » Mon Mar 10, 2003 12:45 pm

thanks for the help guys i plan to use netbeans.....
gh4z4nf4r
Naik
 
Posts: 65
Joined: Mon Oct 14, 2002 3:51 pm
WLM: gh4z4nf4r@hotmail.com
Yahoo Messenger: gh4z4nf4r@yahoo.com
Location: Wah Cantt

Postby farhantoqeer » Mon Mar 10, 2003 12:58 pm

u r always welcome buddy.
farhantoqeer
Major General
 
Posts: 917
Joined: Thu Jun 27, 2002 5:45 pm
Website: http://www.emergen.biz
Location: Karachi

Postby aamircutlery » Sat Mar 22, 2003 1:30 pm

I've downloaded the latest version of Java SDK (1.4.1_02) in self extracting binary file. After installation I tried to run demo program like SwingSet2 and Stylepad they run but after a few while crashed and a lot of exceptions appeared on screen.

I also downloaded NetBeans IDE and tried to install. The main installation screen appears but doesn't show anything (I think window is not being refreshed) and it stays untill I break it.

any idea ? suggestions ???
(I am using Red Hat Linux 8.0)

Thanx in advance
Aamir
aamircutlery
Cadet
 
Posts: 7
Joined: Tue Feb 11, 2003 7:42 pm
Location: Karachi

Postby fawad » Sat Mar 22, 2003 11:11 pm

aamircutlery wrote:I've downloaded the latest version of Java SDK (1.4.1_02) in self extracting binary file. After installation I tried to run demo program like SwingSet2 and Stylepad they run but after a few while crashed and a lot of exceptions appeared on screen.

I also downloaded NetBeans IDE and tried to install. The main installation screen appears but doesn't show anything (I think window is not being refreshed) and it stays untill I break it.

any idea ? suggestions ???
(I am using Red Hat Linux 8.0)

Thanx in advance
Aamir

Aamir, do you have any kernel patches (like grsecurity or LIDS) installed? Also, make sure that it is indeed using the 1.4.1 JDK. Finally, paste the relevent parts of the stack trace here so that we have a better idea abt whats going on. I have the exact same setup (RH8+JDK 1.4.1+Netbeans), and haven't seen issues like this yet.
fawad
Site Admin
 
Posts: 918
Joined: Wed Aug 07, 2002 8:00 pm
ICQ: 17672437
Website: http://www.fawad.net
WLM: fawadhalim@hotmail.com
Yahoo Messenger: fawad2048
AOL: fawadhalim
Location: Addison, IL

Postby farhantoqeer » Sat Mar 22, 2003 11:52 pm

same configuration at my end, along with red hat 7.2
farhantoqeer
Major General
 
Posts: 917
Joined: Thu Jun 27, 2002 5:45 pm
Website: http://www.emergen.biz
Location: Karachi

Postby aamircutlery » Sun Mar 23, 2003 11:35 pm

I didn't install any additional patches. I just installed from RH Linux CDs set.

Following is the trace of exceptions generated after the execution of SwingSet2 program:

[aamir@aamirksquare SwingSet2]$ ../../../bin/java -jar SwingSet2.jar
Mar 23, 2003 11:13:13 PM java.util.prefs.FileSystemPreferences$5 run
INFO: Created user preferences directory.
java.lang.InternalError: not implemented yet
at sun.awt.X11SurfaceData.getRaster(X11SurfaceData.java:155)
at sun.java2d.loops.OpaqueCopyAnyToArgb.Blit(CustomComponent.java:67)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:451)
at sun.java2d.loops.MaskBlit$General.MaskBlit(MaskBlit.java:186)
at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Blit.java:170)
at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:658)
at sun.java2d.pipe.DrawImage.renderSurfaceData(DrawImage.java:386)
at sun.java2d.pipe.DrawImage.clipAndRenderSurfaceData(DrawImage.java:364)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:66)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:50)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:749)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2803)
at sun.awt.image.ImageRepresentation.drawToBufImage(ImageRepresentation.java:726)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:756)
at sun.java2d.pipe.ValidatePipe.copyImage(ValidatePipe.java:147)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2803)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2793)
at javax.swing.ImageIcon.paintIcon(ImageIcon.java:322)
at javax.swing.plaf.basic.BasicLabelUI.paint(BasicLabelUI.java:152)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
at javax.swing.JComponent.paintComponent(JComponent.java:541)
at javax.swing.JComponent.paint(JComponent.java:808)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:552)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4778)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4724)
at javax.swing.JComponent.paint(JComponent.java:798)
at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
at java.awt.Container.paint(Container.java:1309)
at sun.awt.RepaintArea.paint(RepaintArea.java:177)
at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:374)
at java.awt.Component.dispatchEventImpl(Component.java:3699)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
java.lang.InternalError: not implemented yet
at sun.awt.X11SurfaceData.getRaster(X11SurfaceData.java:155)
at sun.java2d.loops.OpaqueCopyAnyToArgb.Blit(CustomComponent.java:67)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:451)
at sun.java2d.loops.MaskBlit$General.MaskBlit(MaskBlit.java:186)
at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Blit.java:170)
at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:658)
at sun.java2d.pipe.DrawImage.renderSurfaceData(DrawImage.java:386)
at sun.java2d.pipe.DrawImage.clipAndRenderSurfaceData(DrawImage.java:364)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:66)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:50)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:749)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2803)
at sun.awt.image.ImageRepresentation.drawToBufImage(ImageRepresentation.java:726)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:756)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2803)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2793)
at javax.swing.ImageIcon.paintIcon(ImageIcon.java:322)
at javax.swing.plaf.basic.BasicToggleButtonUI.paintIcon(BasicToggleButtonUI.java:146)
at javax.swing.plaf.basic.BasicToggleButtonUI.paint(BasicToggleButtonUI.java:94)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
at javax.swing.JComponent.paintComponent(JComponent.java:541)
at javax.swing.JComponent.paint(JComponent.java:808)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4771)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4724)
at javax.swing.JComponent._paintImmediately(JComponent.java:4668)
at javax.swing.JComponent.paintImmediately(JComponent.java:4477)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
java.lang.InternalError: not implemented yet

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4CCE38B4
Function=(null)+0x4CCE38B4
Library=/devep/j2sdk1.4.1_02/jre/lib/i386/libawt.so

NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.


Current Java thread:
at sun.java2d.loops.Blit.Blit(Native Method)
at sun.awt.X11PMBlitLoops$DelegateBlitLoop.Blit(X11PMBlitLoops.java:138)
at sun.awt.image.AcceleratedOffScreenImage.copyBackupToAccelerated(AcceleratedOffScreenImage.java:174)
at sun.awt.motif.X11OffScreenImage.copyBackupToAccelerated(X11OffScreenImage.java:168)
at sun.awt.image.AcceleratedOffScreenImage.validate(AcceleratedOffScreenImage.java:343)
at sun.awt.image.AcceleratedOffScreenImage.getSourceSurfaceData(AcceleratedOffScreenImage.java:275)
at sun.java2d.SurfaceData.getSurfaceDataFromImage(SurfaceData.java:98)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:62)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:50)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:749)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2803)
at sun.awt.image.ImageRepresentation.drawToBufImage(ImageRepresentation.java:726)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:756)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2803)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2793)
at javax.swing.ImageIcon.paintIcon(ImageIcon.java:322)
- locked <0x44b30400> (a javax.swing.ImageIcon)
at javax.swing.plaf.basic.BasicToggleButtonUI.paintIcon(BasicToggleButtonUI.java:146)
at javax.swing.plaf.basic.BasicToggleButtonUI.paint(BasicToggleButtonUI.java:94)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
at javax.swing.JComponent.paintComponent(JComponent.java:541)
at javax.swing.JComponent.paint(JComponent.java:808)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4771)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4724)
at javax.swing.JComponent._paintImmediately(JComponent.java:4668)
at javax.swing.JComponent.paintImmediately(JComponent.java:4477)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

Dynamic libraries:
08048000-0804e000 r-xp 00000000 16:05 630245 /devep/j2sdk1.4.1_02/bin/java
0804e000-0804f000 rw-p 00005000 16:05 630245 /devep/j2sdk1.4.1_02/bin/java
40000000-40012000 r-xp 00000000 16:02 163918 /lib/ld-2.2.93.so
40012000-40013000 rw-p 00012000 16:02 163918 /lib/ld-2.2.93.so
40013000-4001c000 r-xp 00000000 16:05 193922 /devep/j2sdk1.4.1_02/jre/lib/i386/native_threads/libhpi.so
4001c000-4001d000 rw-p 00008000 16:05 193922 /devep/j2sdk1.4.1_02/jre/lib/i386/native_threads/libhpi.so
4001e000-4001f000 r-xp 00000000 16:02 475404 /usr/X11R6/lib/X11/locale/common/xlcUTF8Load.so.2
4001f000-40020000 rw-p 00000000 16:02 475404 /usr/X11R6/lib/X11/locale/common/xlcUTF8Load.so.2
40020000-4002d000 r-xp 00000000 16:02 196681 /lib/i686/libpthread-0.10.so
4002d000-40030000 rw-p 0000d000 16:02 196681 /lib/i686/libpthread-0.10.so
40051000-40053000 r-xp 00000000 16:02 163931 /lib/libdl-2.2.93.so
40053000-40054000 rw-p 00001000 16:02 163931 /lib/libdl-2.2.93.so
40054000-4036c000 r-xp 00000000 16:05 226242 /devep/j2sdk1.4.1_02/jre/lib/i386/client/libjvm.so
4036c000-40550000 rw-p 00317000 16:05 226242 /devep/j2sdk1.4.1_02/jre/lib/i386/client/libjvm.so
40561000-40573000 r-xp 00000000 16:02 163935 /lib/libnsl-2.2.93.so
40573000-40574000 rw-p 00012000 16:02 163935 /lib/libnsl-2.2.93.so
40576000-40597000 r-xp 00000000 16:02 196679 /lib/i686/libm-2.2.93.so
40597000-40598000 rw-p 00021000 16:02 196679 /lib/i686/libm-2.2.93.so
40598000-405a8000 r-xp 00000000 16:05 177763 /devep/j2sdk1.4.1_02/jre/lib/i386/libverify.so
405a8000-405aa000 rw-p 0000f000 16:05 177763 /devep/j2sdk1.4.1_02/jre/lib/i386/libverify.so
405aa000-405cb000 r-xp 00000000 16:05 177764 /devep/j2sdk1.4.1_02/jre/lib/i386/libjava.so
405cb000-405cd000 rw-p 00020000 16:05 177764 /devep/j2sdk1.4.1_02/jre/lib/i386/libjava.so
405cd000-405e2000 r-xp 00000000 16:05 177766 /devep/j2sdk1.4.1_02/jre/lib/i386/libzip.so
405e2000-405e4000 rw-p 00014000 16:05 177766 /devep/j2sdk1.4.1_02/jre/lib/i386/libzip.so
405e4000-41cb3000 r--s 00000000 16:05 129302 /devep/j2sdk1.4.1_02/jre/lib/rt.jar
41cf6000-41d0d000 r--s 00000000 16:05 129282 /devep/j2sdk1.4.1_02/jre/lib/sunrsasign.jar
41d0d000-41d7e000 r--s 00000000 16:05 129284 /devep/j2sdk1.4.1_02/jre/lib/jsse.jar
41d7e000-41d91000 r--s 00000000 16:05 129283 /devep/j2sdk1.4.1_02/jre/lib/jce.jar
41fbb000-41fbe000 r--s 00000000 16:05 242403 /devep/j2sdk1.4.1_02/jre/lib/ext/dnsns.jar
41fbe000-41fc5000 r-xp 00000000 16:02 377584 /usr/X11R6/lib/libXp.so.6.2
41fc5000-41fc6000 rw-p 00006000 16:02 377584 /usr/X11R6/lib/libXp.so.6.2
41fc8000-41fd1000 r-xp 00000000 16:02 163951 /lib/libnss_files-2.2.93.so
41fd1000-41fd2000 rw-p 00008000 16:02 163951 /lib/libnss_files-2.2.93.so
41fd2000-41fef000 r--s 00000000 16:05 242402 /devep/j2sdk1.4.1_02/jre/lib/ext/sunjce_provider.jar
41fef000-41ffd000 r--s 00000000 16:05 242405 /devep/j2sdk1.4.1_02/jre/lib/ext/ldapsec.jar
42000000-42126000 r-xp 00000000 16:02 196677 /lib/i686/libc-2.2.93.so
42126000-4212b000 rw-p 00126000 16:02 196677 /lib/i686/libc-2.2.93.so
4212f000-423eb000 r--s 00000000 16:05 129300 /devep/j2sdk1.4.1_02/jre/lib/charsets.jar
443eb000-443ef000 r-xp 00000000 16:02 377594 /usr/X11R6/lib/libXtst.so.6.1
443ef000-443f0000 rw-p 00004000 16:02 377594 /usr/X11R6/lib/libXtst.so.6.1
4c471000-4c66b000 r--p 00000000 16:02 491547 /usr/lib/locale/locale-archive
4c9bd000-4ca5c000 r--s 00000000 16:05 242404 /devep/j2sdk1.4.1_02/jre/lib/ext/localedata.jar
4ca5c000-4cbaa000 r--s 00000000 16:05 339375 /devep/j2sdk1.4.1_02/demo/jfc/SwingSet2/SwingSet2.jar
4cbaa000-4ce72000 r-xp 00000000 16:05 177774 /devep/j2sdk1.4.1_02/jre/lib/i386/libawt.so
4ce72000-4ce87000 rw-p 002c7000 16:05 177774 /devep/j2sdk1.4.1_02/jre/lib/i386/libawt.so
4cead000-4cf00000 r-xp 00000000 16:05 177773 /devep/j2sdk1.4.1_02/jre/lib/i386/libmlib_image.so
4cf00000-4cf01000 rw-p 00052000 16:05 177773 /devep/j2sdk1.4.1_02/jre/lib/i386/libmlib_image.so
4cf01000-4cf07000 r--s 00000000 16:02 164159 /usr/lib/gconv/gconv-modules.cache
4cf0e000-4cf5c000 r-xp 00000000 16:02 377592 /usr/X11R6/lib/libXt.so.6.0
4cf5c000-4cf60000 rw-p 0004d000 16:02 377592 /usr/X11R6/lib/libXt.so.6.0
4cf60000-4cf6d000 r-xp 00000000 16:02 377572 /usr/X11R6/lib/libXext.so.6.4
4cf6d000-4cf6e000 rw-p 0000c000 16:02 377572 /usr/X11R6/lib/libXext.so.6.4
4cf6e000-4d049000 r-xp 00000000 16:02 377564 /usr/X11R6/lib/libX11.so.6.2
4d049000-4d04c000 rw-p 000da000 16:02 377564 /usr/X11R6/lib/libX11.so.6.2
4d04c000-4d054000 r-xp 00000000 16:02 377562 /usr/X11R6/lib/libSM.so.6.0
4d054000-4d055000 rw-p 00007000 16:02 377562 /usr/X11R6/lib/libSM.so.6.0
4d055000-4d069000 r-xp 00000000 16:02 377558 /usr/X11R6/lib/libICE.so.6.3
4d069000-4d06a000 rw-p 00013000 16:02 377558 /usr/X11R6/lib/libICE.so.6.3
4d06c000-4d132000 r-xp 00000000 16:05 177776 /devep/j2sdk1.4.1_02/jre/lib/i386/libfontmanager.so
4d132000-4d14d000 rw-p 000c5000 16:05 177776 /devep/j2sdk1.4.1_02/jre/lib/i386/libfontmanager.so
4d14d000-4d181000 r-xp 00000000 16:02 379259 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
4d181000-4d18d000 rw-p 00033000 16:02 379259 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
4d210000-4d22c000 r-xp 00000000 16:02 475402 /usr/X11R6/lib/X11/locale/common/ximcp.so.2
4d22c000-4d22e000 rw-p 0001b000 16:02 475402 /usr/X11R6/lib/X11/locale/common/ximcp.so.2
4d330000-4d368000 r-xp 00000000 16:05 177777 /devep/j2sdk1.4.1_02/jre/lib/i386/libjpeg.so
4d368000-4d36a000 rw-p 00037000 16:05 177777 /devep/j2sdk1.4.1_02/jre/lib/i386/libjpeg.so

Local Time = Sun Mar 23 23:13:26 2003
Elapsed Time = 19
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1_02-b06 mixed mode)
#
# An error report file has been saved as /tmp/hs_err_pid1061.log.
# Please refer to the file for further information.
#


Regards
Muhammed Aamir
aamircutlery
Cadet
 
Posts: 7
Joined: Tue Feb 11, 2003 7:42 pm
Location: Karachi


Return to “%s” Programming

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron