BigQuery: How to load library into java code

前端 未结 3 1502
一整个雨季
一整个雨季 2021-01-24 02:08

I am a new dev in Bigquery. I am following tutorial in https://developers.google.com/bigquery/bigquery-api-quickstart with Java code and imported library from https://developers

3条回答
  •  故里飘歌
    2021-01-24 02:22

    You need to add the necessary .jar files (separated by :) to your classpath, i.e.

    javac -cp path/to/jar1:path/to/jar2 
    
    java -cp path/to/jar1:path/to/jar2 
    

    alternatively you can add the .jar files to the CLASSPATH environment variable, i.e. (in unix systems)

    export CLASSPATH=$CLASSPATH:/path/to/some.jar:/path/to/some/other.jar
    

    This can change depending on your environment (i.e. if you are running these in a webapp server)

提交回复
热议问题