Categories
Java

Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 0

When you learn Java,Some details of the small problems tend to be very confusing,When in receive parameters, for example。

If your program needs to receive arguments in order to run,And you did not give the default parameters,That can cause this error:

For example, your code is:
[crayon-5f8f1[……]

Click link to continue reading...

Categories
Java Mac OS

OSX 10.11 EI Capitan running Java SE 8

A few days ago,Latest session of WWDC Conference for us EL Capitan 10.11 latest OSX system,The first time I installed a developer preview。Without him,Netizens have said very little bug is the forums。Looking back to the year,When upgrading from 10.9 and 10.10,Even in beta stage,Is still flying bug!

But this did[……]

Click link to continue reading...

Categories
Java Programming Development

'Javac' is not an internal or external command solutions

These days began playing with a BlackBerry,Engineering mode,Java development environment is installed on the computer,But always after the installation prompts

'javac’ Not an internal or external command balabalabala ... ...

Google ~ solution:

  1. Right-computer--> Properties-> The left side of the "advanced system settings"-> The "Advanced" option[……]

    Click link to continue reading...