packages

package java.nio.file does not exist

喜欢而已 提交于 2019-12-07 03:24:09
问题 I'm working out how to compile java from command line at the moment. Here's what I've got: Here's what I've got: /myjava/compile.cmd /myjava/src/a_pack/HelloWorld.java /myjava/src/b_pack/Inner.java /myjava/src/b_pack/Inner2.java /myjava/bin HelloWorld: package a_pack; import b_pack.Inner; import b_back.Inner2; import java.util.ArrayList; import java.util.Iterator; public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); Inner myInner = new Inner()

In Oracle PL/SQL is there any way to import packages and their members?

。_饼干妹妹 提交于 2019-12-07 03:01:00
问题 Given a package: create or replace package foo as f1 number := 1; end; / Instead of: declare begin dbms_output.put_line('f1 = ' || foo.f1); end; / I'd like to write: declare begin -- pseudocode not a valid PL/SQL import dbms_output.*; import foo.*; put_line('f1 = ' || f1); end; / But how to do that ? EDIT by Jeff: (trying to stay in the spirit of how things are done in PL/SQL) DECLARE PRAGMA IMPORT dbms_output AS d; PRAGMA IMPORT foo AS f; BEGIN d.put_line('f1 = ' || f.f1); END; / 回答1: Quite

Self import of subpackages or not?

断了今生、忘了曾经 提交于 2019-12-07 02:34:57
问题 Suppose you have the following b b/__init__.py b/c b/c/__init__.py b/c/d b/c/d/__init__.py In some python packages, if you import b , you only get the symbols defined in b. To access b.c, you have to explicitly import b.c or from b import c . In other words, you have to import b import b.c import b.c.d print b.c.d In other cases I saw an automatic import of all the subpackages. This means that the following code does not produce an error import b print b.c.d because b/__init__.py takes care

cx_freeze how to include 3rd party modules, ImportError: No module named progressbar

邮差的信 提交于 2019-12-07 02:34:06
问题 i came across a problem when using cx_freeze, how to "include" 3rd party modules or packages ? according to the doc , it seems easy but ... my env : win7 x64 python 2.7.5 x64 here is my setup.py #!/usr/bin/env python2 from cx_Freeze import setup, Executable includefiles = [] includes = [] excludes = [] packages = ["lxml","lxml._elementpath","lxml.etree","lxml.html",'selenium','jinja2', "progressbar"] setup( name = 'myTool', version = '0.1', description = 'Brought to you by xxx', author =

Why is package-protected method not visible in the same package?

萝らか妹 提交于 2019-12-07 02:15:26
问题 Assume we have two packages p1 and p2 and classes p1.M1 extended by p2.M12 as follows: package p1; public class M1 { void method1() { System.out.println("Method 1 called"); } } package p2; import p1.M1; public class M12 extends M1 { void method2() { System.out.println("Method 2 called"); } } Let's extend M12 with p2.B : package p2; public class B extends M12 { public void doSomething() { method1(); method2(); } } This gives a compilation error as method1 , being package-protected within p1 is

Repackaging .jar-s in Android .aar library

烂漫一生 提交于 2019-12-06 21:58:09
问题 Source Code Library Project which uses Library Problem Description I'm writing Android Library (.aar) in that Library I'm using .jar libraries. In order to avoid dependency duplication I'm using ShadowJar plugin for repackaging, as shown below: task shadowJar(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) { System.out.println("Relocating packages...") relocate 'retrofit' , 'com.codecraft.retrofit' relocate 'org.simpleframework.xml', 'com.codecraft.org.simpleframework.xml'

Add NuGet Packages Folder to Solution File?

走远了吗. 提交于 2019-12-06 18:12:22
问题 Nuget puts the package in my root folder(in my case my trunk folder). I am wondering is there a way to let VS 2010 know about this folder? I am using ankh svn to do my commuting so it would be really nice to have it in my solution so when I add a reference I can commit it from VS 2010 and not have to go to my trunk and manually do it. Can this be done? 回答1: The easiest way to do this currently is by using the Working Copy Explorer (View -> Working Copy Explorer). From here you can browse your

In R, how can I extend generic methods from one package in another?

喜欢而已 提交于 2019-12-06 17:24:32
问题 I have a package PackageA with a generic function: #' doWork #' #' Do some work! #' #' @export setGeneric( "doWork", function(x) { standardGeneric("doWork") }) setMethod( "doWork", signature = c("numeric"), definition = function(x) { x == 10 # Some logic... } In PackageB , which depends on PackageA , I would like to add more methods to doWork : #' @import PackageA setMethod( "doWork", signature = c("character"), definition = function(x) { length(x) == 1 && x == "10" # Some more logic... }

Delphi IDE Project “Clean”Command — What does it do?

不想你离开。 提交于 2019-12-06 17:21:29
问题 Running Delphi 2007 (and probably other versions as well, I'm guessing), if I right-click on a project in the Project Manager (either EXE of BPL in this case), there is a "Clean" command above Compile and Build. What exactly does it do? 回答1: To "clean" a build means to delete all intermediate and output files generated by the compiler. Some compilers or IDEs also have a "clean & build" or "rebuild all" option which essentially performs a clean, followed by a build. When you rebuild an

Package.getPackage in java returning null

自古美人都是妖i 提交于 2019-12-06 17:18:10
问题 I have some classes A, B, C in package com.abc I have a Class Main in package com.pqr Now I want to create a package object of the previous pacakge (abc). For this I tried, Package pkg = Package.getPackage("com.abc"); // This gives me null object in pkg But when I do, Package pkg = A.class.getPackage(); // It works fine Can anyone notify, Why Package.getPackage("package-name") is not working ? 回答1: Package.getPackage will only return a non-null value if the current ClassLoader is already