Salve Lista, sou novo por aqui, mas jah vou fazendo pergunta
… essa tah me enloquecendo… naum sei mais onde procurar 
Depois de um internamento total pra acessar conseguir acessar um SO feita em kylix atraves do JAVA (chegou a ser doloroso… hehehe )… agora me deparo com um problema q acho q eh simples, mas meu acabou deretendo nesse meio tempo e naum saio mais daki:
consegui acessar a SO,usando uma bridge… soh q assim, utilizando java puro, em console, deu certo… segue o codigo :
Código:
public class aspDocLWJ {
public static void main(String[] args){
aspDocLWJ cm = new aspDocLWJ();
boolean retorno;
retorno = cm.infParametros(4747, "10.46.2.113", "10.46.2.113");
if (retorno)
{System.out.println("Sucesso");
}
else
{
System.out.println(cm.retornaMensagemErro());
}
public native boolean infParametros(int porta, String nomeServidor,String ipServidor ) throws Error;
static{
System.loadLibrary(“AspDocCliente53LWJ”);
}
Ateh aeh bele, fikei moh feliz e tal, dae qdo fui jogar isso pra Servlet ele fika me acusando esse erro :
Código:
org.apache.jasper.JasperException: infParametros
eis o codigo do servlet
Código:
public class AspdocLW extends HttpServlet {
public void AutenticaUser(PageContext pageContext) {
HttpServletResponse response = (HttpServletResponse) pageContext.getResponse();
HttpSession session = pageContext.getSession();
try{
AspdocLW ad = new AspdocLW();
boolean retorno;
retorno = ad.infParametros (4747, "10.46.2.113", "10.46.2.113");
if (retorno) {
response.getWriter().println("Server encontrado!!");
} else {
response.getWriter().println(ad.retornaMensagemErro());
}
}catch (Exception e){
System.out.println(e.toString());
}
}
// Chama metodos nativos da Bridge
public native boolean infParametros(int porta, String nomeServidor,String ipServidor ) throws Error;
public native String retornaMensagemErro() throws Error;
// Carrega Biblioteca
static{
System.loadLibrary(“AspDocCliente53LWJ”);
}
}
Alguem pode me ajudar please???
acho q mexer com JNI tah me destruindo hehehe…
desde jah agradeço pessoal