MYSQL Connector J no Ubuntu

1

Sou relativamente novo no Ubuntu e estou desenvolvendo um aplicativo usando o MySql Server.

Minha pergunta é: onde coloco o arquivo? Eu sei que no Windows o conector vai no arquivo 'lib' do projeto. Isso também vale para o Ubuntu? Se não, para onde vai?

    
por Alex Plouff 28.05.2015 / 22:16

1 resposta

0

Hora de ler a documentação. De Instalando o driver e configurando o CLASSPATH :

Once you have extracted the distribution archive, you can install the driver by placing mysql-connector-java-version-bin.jar in your classpath, either by adding the full path to it to your CLASSPATH environment variable, or by directly specifying it with the command line switch -cp when starting the JVM.

...

You can set the CLASSPATH environment variable under Unix, Linux, or OS X either locally for a user within their .profile, .login or other login file. You can also set it globally by editing the global /etc/profile file.

...

If you are developing servlets or JSPs, and your application server is J2EE-compliant, you can put the driver's .jar file in the WEB-INF/lib subdirectory of your webapp, as this is a standard location for third party class libraries in J2EE web applications.

    
por 28.05.2015 / 22:23