Scripts posted recently tagged to java in Kelpi

1- 10 of 17.

lucene merging index

to java lucene by anonymous

import java.io.StringReader;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.index.IndexWriter;

lucene merging index

to java lucene by anonymous

public static void main (String ... args) throws Exception{
		
		IndexWriter iw_temp = new IndexWriter("i.temp",new StandardAnalyzer());
		IndexWriter iw = new IndexWriter("i",new StandardAnalyzer());
		

Create jar files

to jar java sign by mikel

erral@lindari:~/Desktop/ujiConfig-2.0.3$ keytool -genkey -alias erral
erral@lindari:~/Desktop/ujiConfig-2.0.3$ jar cf ujiConfig-2.0.3.jar *
erral@lindari:~/Desktop/ujiConfig-2.0.3$ jarsigner ujiConfig-2.0.3.jar erral

Notame port using android

to notame java android by nando.quintana

// Carlos Fernández http://www.vloj.com/archives/98

package org.notame.android;
import android.app.Activity;
import android.content.Intent;

Testing number format

to formats java by java_lover

/**

   @version 1.12 2004-09-15

   @author Cay Horstmann

start rmi registry within java

to java rmi registry by brecke

try {
	Registry rmi = LocateRegistry.createRegistry(port);
	rmi.bind("binding_name", service);
} catch (Exception e) {
	log.fatal("Could not instanciate the specified bean", e);

Java client for Facebook

to facebook client java by anonymous

// http://developers.facebook.com/clientlibs/facebook_java_client.zip

/*
  +---------------------------------------------------------------------------+
  | Facebook Development Platform Java Client                                 |

Cript and decript an string

to java cript by franklin

// http://cricava.com/java/encriptacion_y_desencriptacion_de_cadenas_usando_claves
 // 
 // Mariano Iglesias

 String cadenaEncriptada = Cifrador.encriptar("clave", "Mi Cadena"); 

Replace one string with another string

to java string by anonymous

// http://www.java2s.com/Tutorial/Java/0120__Development/Replaceonestringwithanotherstring.htm

public class MainClass
{
   public static void main( String args[] )

sign PDF files with digital signatures

to python jython java pdf digitalsignature p12 signature by mikel

Variables to set, before executing the code
PATH_TO_P12_CERTIFICATE_FILE
CERTIFICATE_PASSWORD
CERTIFICATE_PASSWORD
INPUT_FILE_PATH_TO_SIGN
hits counter