Pages

Monday, June 4, 2018

Download Oracle 64 bit JDK 1.7 pre installed zip


Click below to download the Oracle JDK 1.7 pre installed zip 64 bit (No installation required)

Click here Oracle JDK 1.7

after download, unzip the pack to a folder

set JAVA_HOME and PATH environment variables

Monday, May 28, 2018

Create Java Pre installed zip from Jdk executable


Creating a pre installed JDK in Zip package, Follow these steps:
  1. Download Latest Jdk executable from Oracle.com
  2. extract all the files from jdk-8u172-windows-x64.exe into the directory( any destination dir)
    Eg: C:\JDK
  3. Execute the following commands in cmd.exe:
    • cd C:\JDK\.rsrc\1033\JAVA_CAB10
    • extrac32 111
  4. Unpack C:\JDK\.rsrc\1033\JAVA_CAB10\tools.zip with 7-zip
  5. Execute the following commands in cmd.exe:
    • cd C:\JDK\.rsrc\1033\JAVA_CAB10\tools\
    • for /r %x in (*.pack) do .\bin\unpack200 -r "%x" "%~dx%~px%~nx.jar" (this will convert all .pack files into .jar files)
  6. Copy all contents of C:\JDK\.rsrc\1033\JAVA_CAB10\tools where you want your JDK to be

Thursday, July 7, 2016

Connect Ldap using Java

LDAP (Lightweight Directory Access Protocol) is a software protocol for enabling anyone to locate organizations, individuals, and other resources such as files and devices in a network, whether on the public Internet or on a corporate intranet. LDAP is a "lightweight" (smaller amount of code) version of Directory Access Protocol (DAP), which is part of X.500, a standard for directory services in a network.
Directory structure strings:
rdnRelative Distinguished Name
dnDistinguished Name
cnCommon Name
ouOrganizational Unit
dcDomain Component
snSurName
As an example, the Entry look like was:
dn: cn=Joe Smith,ou=East,dc=MyDomain,dc=com
 cn: John Doe
 givenName: John
 sn: Doe
 telephoneNumber: +1 888 555 6789
 telephoneNumber: +1 888 555 1232
 mail: john@example.com
 manager: cn=Barbara Doe,dc=example,dc=com
 objectClass: inetOrgPerson
 objectClass: organizationalPerson
 objectClass: person
 objectClass: top