在没有互联网连接的计算机上使用Scala [英] Use Scala on computer without internet connection

查看:101
本文介绍了在没有互联网连接的计算机上使用Scala的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Scala的新手,很抱歉,如果这个问题很明显.

I am new in Scala, so sorry if the question is absolutely obvious.

我的计算机上安装了Eclipse Photon.想要编辑Scala代码并生成可运行的jar.棘手的部分是我的计算机(Centos7)无法访问Internet.

I have an Eclipse Photon installed on my computer. Would like to edit Scala code and produce runnable jars. The tricky part is that I don't have internet access on my computer (Centos7).

我谨记两个潜在的问题/疑问:

I bear in mind two potential issues/questions:

  1. 手动下载插件:我知道,Scala IDE Eclipse插件可以运行Scala代码/生成jar(例如
  1. Downloading the plugin manually: I know, that Scala IDE plugin for Eclipse enables running Scala code/producing jars (like https://medium.com/devilsadvocatediwakar/how-to-install-scala-plugins-in-eclipse-in-ubuntu-13e53ffe3f39). Installing it from the GUI is rather straight forward. Is it possible to download a plugin bundle manually (not from GUI), move it to target computer and finally install it?
  2. Compiling code into jars: assume that the point 1 is done. SBT or Maven requires some dependencies (e.g. Yoda time, Spark libraries) to produce specific jars - does it cause, that all the dependencies shall be moved and installed manually also?

推荐答案

答案由Luis MiguelMejíaSuárez在评论中提供:

The answer was provided by the Luis Miguel Mejía Suárez in comments:

是的,可以. 用于安装手动插件- maven存储库进行搜索 并下载依赖项JARS ...但是,这真的是您的吗? 个人电脑?还是某种部署服务器? -另外, 我是ScalaIDE的前用户,我建议您尝试其他方法, 较新的IDE.例如,我刚刚将上周从Eclipse切换到了 VSCode与金属.

Yes you can. For installing a manual plugin - here you can find the zip of the ScalaIDE - and finally, use the maven repository to search and download the dependencies JARS... However, is this really your personal computer? or some kind of deployment server? - Also, as an ex-user of the ScalaIDE I would recommend you to try a different, newer IDE. For example, I just switched the last week from Eclipse to VSCode with metals.

这篇关于在没有互联网连接的计算机上使用Scala的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆