jaibardhan Ruwari

Greenhorn
+ Follow
since Jul 18, 2010
Merit badge: grant badges
For More
India
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by jaibardhan Ruwari


Issue-java.lang.NoClassDefFoundError
Root Cause- Incorrect Java path set in Environment Variable Section
Solution- Set correct JAVA_HOME Path
Steps->Environment Variable Setting (My Comp-Right Click ->Properties->Env Variable->Advance Tab ->Variable)
1) Create new JAVA_HOME Environment Variable.
JAVA_HOME .;C:\Program Files (x86)\Java\jdk1.6.0_14
Amend JAVA_HOME classpath by adding . for current directory
2) Set JAVA_HOME variable in PATH Variable section.
PATH %JAVA_HOME%\bin
3) Set JAVA_HOME variable in CLASSPATH Variable
CLASSPATH %JAVA_HOME%\jre\lib
4) Restart System
5) Verify all variable
echo %CLASSPATH%
echo %JAVA_HOME%
echo %PATH%
6) Compile java class javac Test.java
7) Run Java program java Test
10 years ago
This exception is due to your data contained some Special characters which is not supported by Parser while rendering into PDF Through FOP Engine.
1) Passed encoding characterless while generating XML or
2) Replace all possible special characters from XML Data while reading XML or
3) Replace these from Database completely.

FileWriter fWriter = new OutputStreamWriter(new FileOutputStream(xmlfileName), "UTF-8");


Replace these charcters at run time from XML data.

12 years ago
Darryl,
App having a main window with toolbar and menus etc.
Inside this main window there is another frame(JInternal frame), from where user can open different screens (frames).So its a Parent child relationship between the JInternal frames.

1) When open a window (JInternal Frame over Model Layer), we used the above cursor code for processing from busy to default cursor mode and work fine reset cusor back to default.
(pointer) after processing but when we close the frame by close button cursor comes back into the hourglass mode on parent window.
2) There are no such issue when we open same frames over Deafult Layer.
3) Issue over Model Layer only appears when using JDK1.6 but working fine in JDK1.5.

13 years ago
Hi,
In our application we using swing cursor when processing data using below snippet code in parent-child window.

try{
component.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
// Code for processing
// code
}catch (Exception e) {
e.printStackTrace();
}finally{
component.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
}

Code reset cursor back to default after logic processing without any exception.

But after closing this child frame by close event or clicking some control on this frame, when it comes into parent window its show hourgalss instead of default(pointer).


1)This type of behaviour of frame shown only when opening frame over Model Layer but work fine in case of opeing over default layer .

2) When using jdk 1.6

If we explicitly set cursor to default at closing or other event even then it shows hourglass cursor.

Please suggest.
13 years ago
Abstraction is only giving essential details w/o any background information.This is achieved in java by
1) Abstract Class and Interface //We don't know the function implementation of code until unless at run time or we have a information about the class which implementing this Interface or Extends this Abstract Class If we click on this method it directly take us to Interface method not to Class which actually implementing this method.
2) Hiding information by access modifier only give access to required
3) Object - Nothing can be access by Object ref.
13 years ago