Results 1 to 2 of 2
- 04-18-2008, 08:43 PM #1
Member
- Join Date
- Apr 2008
- Posts
- 1
- Rep Power
- 0
Please help, need to make my class static.
Hi everyone,
I am new to this forum as well as java. I struggled to write this class using jdeveloper. But the problem is I cannot/donot know how to make the class as a "static" class. I need to do that so I can load this class into oracle DB and then use PL/SQL to call the method. I appreciate any help you can give me. My code is as follows:
package com.av;
import java.io.*;
public class my1 {
String avMode = "SCAN";
boolean scan = avMode.startsWith("SCAN");
String avServer = "xx";
int avPort = x;
int the_return = 0;
/**
* @param fileBytes
* @param fileName
* @return
*/
public int scanfile(byte[] fileBytes,String fileName)
{
if (scan) {
AVClient avc = new AVClient(avServer,avPort,avMode);
the_return = avc.scanfile(fileName, fileBytes);
if (the_return == -1) {
return (the_return);
} else
return (the_return);
}
return (the_return);
}
}
Can anyone please help me?
rgds,
Suma.
- 04-19-2008, 07:29 AM #2
Similar Threads
-
Abstract Class with Static Methods
By bugger in forum New To JavaReplies: 7Last Post: 09-05-2008, 12:20 AM -
Static class
By eva in forum New To JavaReplies: 1Last Post: 12-31-2007, 01:02 PM -
Mocking static methods of class
By Kat in forum New To JavaReplies: 3Last Post: 11-08-2007, 12:24 AM -
Error: Non-static method append(char) cannot be referenced from a static context
By paul in forum Advanced JavaReplies: 1Last Post: 08-07-2007, 05:05 AM -
Error: non-static variable height cannot be referenced from a static context at line
By fernando in forum AWT / SwingReplies: 1Last Post: 08-01-2007, 09:25 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks