Hari Kumarkar

Greenhorn
+ Follow
since Aug 11, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Hari Kumarkar

Hi Matthew Brown,

Step 3 is working fine, where I explicitly imported "import com.A;" and "import com.B;". But I want it to run through "import com.*;"
7 years ago
Hi,

I'm using d:\corejava as a current and running folder, where i had set path as "d:\corejava>set path=c:\java\jdk1.6.0_24\bin;".
I created two helper java files i,e D:\corejava\A.java and D:\corejava\B.java and executable java file as "D:\corejava\TestPackage3.java"







I compiled A.java and B.java as "javac -d . A.java" and "javac -d . B.java" Upto here it is good.

Step 1:-

I try to set classpath as "D:\corejava>set classpath=D:\corejava;.;" then I compiled TestPackage3.java as "javac TestPackage3.java" here i got error as


TestPackage3.java:6: cannot access A
bad class file: .\A.java
file does not contain class A
Please remove or make sure it appears in the correct subdirectory of the classpath.
A a = new A();
^
1 error



Step 2:-

Again I try to set classpath as "D:\corejava>set classpath=D:\corejava\com;.;" then I compiled TestPackage3.java as "javac TestPackage3.java" again I got the same error as above

Step 3:-

Again I changed "import com.*" to "import com.A; import com.B" then it is working fine.

Now I want to know is there is any errors in executable file or in helper file or in classpath setting. Anticipating a positive reply.


7 years ago
I'm so sorry for the delay. Thanks for all who solved my problem.
7 years ago


In above application we created a new object(a1) for class A, then it is initialized to "null", even though i can call "a1.fun() & A.fun()" and i can initialize "a1.i = 100" and "A.i = 1000"
Even after object(a1) becomes null; a1.fun() and A.fun() calls the static method fun() successfully.
We initialized to a1.i = 100 and A.i = 1000;
For a1.i = 100 and A.i = 1000 it displays 1000 as output. I want to know how its behaves and why it displays the same value as 1000.

Anticipating a positive reply.

Thanks & Regards
Hari Kumarkar
7 years ago
Hi,

Thank you to all, problem resolved.

Thanks,
Hari Kumarkar
7 years ago
Hi All,

TRAIL 1:

If I declare a int variable(i) and initializing at run-time for creating "n" number of array of objects

int i = System.in.read(); // Declaring a variable at run-time
System.out.println("i: "+i);
Xyz o[] = new Xyz[i];
System.out.println("o.length :"+o.length);


If I enter 1 as input then it is going to display 49 number of objects ---- HERE I'M FACING PROBLEM; PERHAPS IT SHOULD DISPLAY 1 NUMBER OF OBJECT

TRAIL 2:

If I initialize a int variable(i) and initializing at run-time for creating "n" number of array of objects


int i = 1; // Initializing a variable
Xyz o[] = new Xyz[i];
System.out.println("o.length :"+o.length);


HERE I'M GETTING 1 NUMBER OF OBJECT.

I request you to provide solution for above problem, anticipating a positive reply.
7 years ago
Hi,

I'm new to OSWorkflow I need to develop a small application of OSWorkflow, I request to help in this matter.

Thanks & Regards,
Hari
9 years ago
Hi All,
In my application i have two different dates for example
req_date: 2008-12-12 16:54:23
assigned_date: 2008-12-16 19:56:59
Here i want to display the difference between two timestamps in "Hours:minutes:seconds"
9 years ago
Hi Dragan Stankovic , Rob Prime

I came to know usage of static as parameters.

Thank You very much
9 years ago
Hi Nimmala,

If you don't mind, I did'nt get you, can you brief about your question.

Regards
Hari
9 years ago
Can i use "static" variable as parameters? If yes i would be appreciate if i have an example.

Thanks & Regards
Hari
9 years ago
I want to add more information, while testing test connection for datasource, it dispalys a message as:-

The test connection operation failed for the date source **** on server **** at node **** with the following exception : java.sql.SQLException:invalid arguments in callDSRA0010E:SQL State=null, Error Code=17,433

Thanking you.
9 years ago
Am sorry:
URL: jdbc rcle:thin:@*.*.*.*:15**:ABC
9 years ago
Hi all,

I need help how to create horizontal menu tab in jsp

Thanks & Regards
Hari
9 years ago
JSP
Hi All,
Am new to IBM Websphere,using IBM RAD version 7.0, am not able to connect the oracle DB. Am using Java 1.5, Oracle 9 with ojdbc14.jar file.

while configuring "JDBC Providers"

DB Type: oracle
Provider Type: Oracle JDBC Driver
Implementation Type: connection pool data source
classpath: ${ORACLE_JDBC_DRIVER_PATH}/ojdb14.jar
------------------------------------------------
while configuring "Data Source"

Name: DEDUP
JNDI Name: jndi/DEDUP
URL: jdbc rcle:thin:@*.*.*.*:15** EDUP
-------------------------------------------------
while selecting "DEDUP" and clicks "Test Connection" a message will displays:

"Changes have been made to the resource configuration for this scope. You must Save these changes to the master configuration before performing this action"

After clicking to the link "Save" a new page dislays it will asks for "Save", "Discard" and "Cancel"

But there is no "Save" button at this page.

please help me...
9 years ago